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

Function failCause

packages/effect/src/internal/core.ts:726–730  ·  view source on GitHub ↗
(cause: Cause.Cause<E>)

Source from the content-addressed store, hash-verified

724
725/* @internal */
726export const failCause = <E>(cause: Cause.Cause<E>): Effect.Effect<never, E> => {
727 const effect = new EffectPrimitiveFailure(OpCodes.OP_FAILURE) as any
728 effect.effect_instruction_i0 = cause
729 return effect
730}
731
732/* @internal */
733export const failCauseSync = <E>(

Callers 4

core.tsFile · 0.70
dieFunction · 0.70
failFunction · 0.70
interruptWithFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected