import * as tsplus_module_1 from "@tsplus/stdlib/data/Maybe/definition";
import * as tsplus_module_2 from "@effect/core/io/Effect/operations/mapError";
import * as tsplus_module_3 from "@effect/core/stream/Stream/operations/repeatEffectMaybe";
/**
 * Creates a stream from an effect producing a value of type `A` which repeats
 * forever.
 *
 * @tsplus static ets/Stream/Ops repeatEffect
 */

export function repeatEffect(effect, __tsplusTrace) {
  return tsplus_module_3.repeatEffectMaybe(() => tsplus_module_2.mapError_(effect(), tsplus_module_1.some, __tsplusTrace), __tsplusTrace);
}
//# sourceMappingURL=repeatEffect.mjs.map