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

Function sync

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

Source from the content-addressed store, hash-verified

768 * @since 2.0.0
769 */
770export const sync = <A>(evaluate: LazyArg<A>): Stream<A> => fromChannel(Channel.sync(() => Arr.of(evaluate())))
771
772/**
773 * Creates a lazily constructed stream.

Callers

nothing calls this directly

Calls 4

fromChannelFunction · 0.70
evaluateFunction · 0.70
ofMethod · 0.65
syncMethod · 0.45

Tested by

no test coverage detected