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

Function keepDefects

packages/effect/src/internal/cause.ts:278–286  ·  view source on GitHub ↗
(self: Cause.Cause<E>)

Source from the content-addressed store, hash-verified

276
277/** @internal */
278export const keepDefects = <E>(self: Cause.Cause<E>): Option.Option<Cause.Cause<never>> =>
279 match(self, {
280 onEmpty: Option.none(),
281 onFail: () => Option.none(),
282 onDie: (defect) => Option.some(die(defect)),
283 onInterrupt: () => Option.none(),
284 onSequential: Option.mergeWith(sequential),
285 onParallel: Option.mergeWith(parallel)
286 })
287
288/** @internal */
289export const keepDefectsAndElectFailures = <E>(self: Cause.Cause<E>): Option.Option<Cause.Cause<never>> =>

Callers

nothing calls this directly

Calls 2

matchFunction · 0.70
dieFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…