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/repeatEffectChunkMaybe";
/**
 * Creates a stream from an effect producing chunks of `A` values which
 * repeats forever.
 *
 * @tsplus static ets/Stream/Ops repeatEffectChunk
 */

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