MCPcopy Index your code
hub / github.com/Effect-TS/effect / sync

Function sync

packages/effect/src/internal/core.ts:1215–1219  ·  view source on GitHub ↗
(thunk: LazyArg<A>)

Source from the content-addressed store, hash-verified

1213
1214/* @internal */
1215export const sync = <A>(thunk: LazyArg<A>): Effect.Effect<A> => {
1216 const effect = new EffectPrimitive(OpCodes.OP_SYNC) as any
1217 effect.effect_instruction_i0 = thunk
1218 return effect
1219}
1220
1221/* @internal */
1222export const tap = dual<

Callers 8

dieSyncFunction · 0.70
failSyncFunction · 0.70
failCauseSyncFunction · 0.70
core.tsFile · 0.70
deferredMakeAsFunction · 0.70
deferredIsDoneFunction · 0.70
deferredPollFunction · 0.70
deferredInterruptJoinerFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected