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

Function sync

packages/effect/src/internal/stm/core.ts:770–774  ·  view source on GitHub ↗
(evaluate: () => A)

Source from the content-addressed store, hash-verified

768
769/** @internal */
770export const sync = <A>(evaluate: () => A): STM.STM<A> => {
771 const stm = new STMPrimitive(OpCodes.OP_SYNC)
772 stm.effect_instruction_i1 = evaluate
773 return stm as any
774}
775
776/** @internal */
777export const zip = dual<

Callers 2

runMethod · 0.70
core.tsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected