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

Function exitSucceed

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

Source from the content-addressed store, hash-verified

2692
2693/** @internal */
2694export const exitSucceed = <A>(value: A): Exit.Exit<A> => {
2695 const effect = new EffectPrimitiveSuccess(OpCodes.OP_SUCCESS) as any
2696 effect.effect_instruction_i0 = value
2697 return effect
2698}
2699
2700/** @internal */
2701export const exitVoid: Exit.Exit<void> = exitSucceed(void 0)

Callers 6

evalFunction · 0.85
Micro.tsFile · 0.85
core.tsFile · 0.85
fiberRefGetFunction · 0.85
exitFromEitherFunction · 0.85
exitFromOptionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected