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

Function endSync

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

Source from the content-addressed store, hash-verified

859 * @since 4.0.0
860 */
861export const endSync = <A>(evaluate: LazyArg<A>): Channel<never, never, A> =>
862 fromPull(Effect.sync(() => Cause.done(evaluate())))
863
864/**
865 * Creates a `Channel` that emits a single value computed by a lazy evaluation.

Callers

nothing calls this directly

Calls 4

fromPullFunction · 0.70
evaluateFunction · 0.70
syncMethod · 0.45
doneMethod · 0.45

Tested by

no test coverage detected