Package: effect
Module: Cause
Splits a Cause into either its first Fail error or the rest of the cause
(which might only contain Die or Interrupt).
Details
This function either returns the checked error (E) or the remaining
Cause<never> with defects/interruptions. It helps you decide if there’s a
recoverable path or if only unhandled issues remain.
Signature
declare const failureOrCause: <E>(self: Cause<E>) => Either.Either<Cause<never>, E>
Since v2.0.0