import * as tsplus_module_1 from "@tsplus/stdlib/collections/Chunk/single";
import * as tsplus_module_2 from "@effect/core/io/Effect/operations/map";
import * as tsplus_module_3 from "@effect/core/stream/Stream/operations/repeatEffectChunkMaybe";
/**
 * Creates a stream from an effect producing values of type `A` until it fails
 * with `None`.
 *
 * @tsplus static ets/Stream/Ops repeatEffectMaybe
 */

export function repeatEffectMaybe(effect, __tsplusTrace) {
  return tsplus_module_3.repeatEffectChunkMaybe(() => tsplus_module_2.map_(effect(), tsplus_module_1.single, __tsplusTrace), __tsplusTrace);
}
//# sourceMappingURL=repeatEffectMaybe.mjs.map