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

Function suspend

packages/effect/src/Sink.ts:578–579  ·  view source on GitHub ↗
(evaluate: LazyArg<Sink<A, In, L, E, R>>)

Source from the content-addressed store, hash-verified

576 * @since 2.0.0
577 */
578export const suspend = <A, In, L, E, R>(evaluate: LazyArg<Sink<A, In, L, E, R>>): Sink<A, In, L, E, R> =>
579 fromTransform((upstream, scope) => evaluate().transform(upstream, scope))
580
581/**
582 * A sink that always fails with the specified error.

Callers 3

awaitPendingTransactionFunction · 0.70
takeUntilFunction · 0.70
takeUntilEffectFunction · 0.70

Calls 3

fromTransformFunction · 0.70
evaluateFunction · 0.70
transformMethod · 0.65

Tested by

no test coverage detected