MCPcopy Create free account
hub / github.com/Effect-TS/effect / die

Function die

packages/effect/src/internal/cause.ts:98–103  ·  view source on GitHub ↗
(defect: unknown)

Source from the content-addressed store, hash-verified

96
97/** @internal */
98export const die = (defect: unknown): Cause.Cause<never> => {
99 const o = Object.create(proto)
100 o._tag = OpCodes.OP_DIE
101 o.defect = defect
102 return o
103}
104
105/** @internal */
106export const interrupt = (fiberId: FiberId.FiberId): Cause.Cause<never> => {

Callers 6

flipCauseOptionFunction · 0.70
keepDefectsFunction · 0.70
linearizeFunction · 0.70
cause.tsFile · 0.70
FilterCauseReducerFunction · 0.70

Calls 1

createMethod · 0.80

Tested by

no test coverage detected