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

Function sync

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

Source from the content-addressed store, hash-verified

852 * @since 2.0.0
853 */
854export const sync = <A>(evaluate: LazyArg<A>): Stream<A> => fromChannel(Channel.sync(() => Arr.of(evaluate())))
855
856/**
857 * 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