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

Function sync

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

Source from the content-addressed store, hash-verified

6463
6464/** @internal */
6465export const sync = <A>(evaluate: LazyArg<A>): Stream.Stream<A> => suspend(() => fromChunk(Chunk.of(evaluate())))
6466
6467/** @internal */
6468export 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