MCPcopy Create free account
hub / github.com/Effect-TS/effect / fromEffectRepeat

Function fromEffectRepeat

packages/effect/src/Stream.ts:454–455  ·  view source on GitHub ↗
(effect: Effect.Effect<A, E, R>)

Source from the content-addressed store, hash-verified

452 * @since 4.0.0
453 */
454export const fromEffectRepeat = <A, E, R>(effect: Effect.Effect<A, E, R>): Stream<A, Pull.ExcludeDone<E>, R> =>
455 fromPull(Effect.succeed(Effect.map(effect, Arr.of)))
456
457/**
458 * Creates a stream from an effect producing a value of type `A`, which is

Callers 1

fromIterableEffectRepeatFunction · 0.85

Calls 3

fromPullFunction · 0.70
succeedMethod · 0.45
mapMethod · 0.45

Tested by

no test coverage detected