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

Function flipCauseOption

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

Source from the content-addressed store, hash-verified

258
259/** @internal */
260export const flipCauseOption = <E>(self: Cause.Cause<Option.Option<E>>): Option.Option<Cause.Cause<E>> =>
261 match(self, {
262 onEmpty: Option.some<Cause.Cause<E>>(empty),
263 onFail: Option.map(fail),
264 onDie: (defect) => Option.some(die(defect)),
265 onInterrupt: (fiberId) => Option.some(interrupt(fiberId)),
266 onSequential: Option.mergeWith(sequential),
267 onParallel: Option.mergeWith(parallel)
268 })
269
270/** @internal */
271export const interruptOption = <E>(self: Cause.Cause<E>): Option.Option<FiberId.FiberId> =>

Callers

nothing calls this directly

Calls 4

matchFunction · 0.70
dieFunction · 0.70
interruptFunction · 0.70
mapMethod · 0.65

Tested by

no test coverage detected