MCPcopy Index your code
hub / github.com/Effect-TS/effect / sync

Function sync

packages/effect/src/internal/stream.ts:6427–6427  ·  view source on GitHub ↗
(evaluate: LazyArg<A>)

Source from the content-addressed store, hash-verified

6425
6426/** @internal */
6427export const sync = <A>(evaluate: LazyArg<A>): Stream.Stream<A> => suspend(() => fromChunk(Chunk.of(evaluate())))
6428
6429/** @internal */
6430export const suspend = <A, E, R>(stream: LazyArg<Stream.Stream<A, E, R>>): Stream.Stream<A, E, R> =>

Callers 1

stream.tsFile · 0.70

Calls 3

fromChunkFunction · 0.85
suspendFunction · 0.70
ofMethod · 0.65

Tested by

no test coverage detected