MCPcopy
hub / github.com/Effect-TS/effect / suspend

Function suspend

packages/effect/src/internal/core.ts:1208–1212  ·  view source on GitHub ↗
(evaluate: LazyArg<Effect.Effect<A, E, R>>)

Source from the content-addressed store, hash-verified

1206
1207/* @internal */
1208export const suspend = <A, E, R>(evaluate: LazyArg<Effect.Effect<A, E, R>>): Effect.Effect<A, E, R> => {
1209 const effect = new EffectPrimitive(OpCodes.OP_COMMIT) as any
1210 effect.commit = evaluate
1211 return effect
1212}
1213
1214/* @internal */
1215export const sync = <A>(thunk: LazyArg<A>): Effect.Effect<A> => {

Callers 3

core.tsFile · 0.70
asyncInterruptFunction · 0.70
fromIteratorFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected