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

Function succeed

packages/effect/src/internal/stm/core.ts:763–767  ·  view source on GitHub ↗
(value: A)

Source from the content-addressed store, hash-verified

761
762/** @internal */
763export const succeed = <A>(value: A): STM.STM<A> => {
764 const stm = new STMPrimitive(OpCodes.OP_SUCCEED)
765 stm.effect_instruction_i1 = value
766 return stm as any
767}
768
769/** @internal */
770export const sync = <A>(evaluate: () => A): STM.STM<A> => {

Callers 3

runMethod · 0.70
effectFunction · 0.70
core.tsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected