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

Function succeed

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

Source from the content-addressed store, hash-verified

1199
1200/* @internal */
1201export const succeed = <A>(value: A): Effect.Effect<A> => {
1202 const effect = new EffectPrimitiveSuccess(OpCodes.OP_SUCCESS) as any
1203 effect.effect_instruction_i0 = value
1204 return effect
1205}
1206
1207/* @internal */
1208export const suspend = <A, E, R>(evaluate: LazyArg<Effect.Effect<A, E, R>>): Effect.Effect<A, E, R> => {

Callers 2

core.tsFile · 0.70
eitherFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected