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

Function diesOnly

packages/effect/src/ui/Query.ts:4264–4267  ·  view source on GitHub ↗
(cause: Cause.Cause<any>)

Source from the content-addressed store, hash-verified

4262 )
4263
4264const diesOnly = (cause: Cause.Cause<any>): Cause.Cause<never> =>
4265 Cause.fromReasons(
4266 cause.reasons.filter(Cause.isDieReason).map((reason) => Cause.makeDieReason(reason.defect))
4267 )
4268
4269/** What a caller of a fetch gets: a defect, the Fails only, or an interrupt for a revert. */
4270const callerExit = (exit: Exit.Exit<any, any>): Exit.Exit<any, any> =>

Callers 2

callerExitFunction · 0.85
markDefectFunction · 0.85

Calls 2

mapMethod · 0.45
filterMethod · 0.45

Tested by

no test coverage detected