Exit29
Constructors
dieconstCreates a failed Exit from a defect (unexpected error).failconstCreates a failed Exit from a typed error value.failCauseconstCreates a failed Exit from a Cause.interruptconstCreates a failed Exit representing fiber interruption.succeedconstCreates a successful Exit containing the given value.Models
Guards
hasDiesconstChecks whether a failed Exit contains defects (Die reasons).hasFailsconstChecks whether a failed Exit contains typed errors (Fail reasons).hasInterruptsconstChecks whether a failed Exit contains interruptions (Interrupt reasons).isExitconstChecks whether an unknown value is an Exit.isFailureconstChecks whether an Exit is a Failure.isSuccessconstChecks whether an Exit is a Success.Combinators
asVoidconstDiscards the success value of an Exit, replacing it with void.asVoidAllconstCombines multiple Exit values into a single Exit<void, E>.mapconstTransforms the success value of an Exit using the given function.mapBothconstTransforms both the success value and typed error of an Exit.mapErrorconstTransforms the typed error of a failed Exit using the given function.Filtering
filterCauseconstExtracts the Cause from a failed Exit as a Result.filterFailureconstExtracts the Failure variant from an Exit as a Result.filterSuccessconstExtracts the Success variant from an Exit as a Result.filterValueconstExtracts the success value from an Exit as a Result.findDefectconstExtracts the first defect from a failed Exit as a Result.findErrorconstExtracts the first typed error value from a failed Exit as a Result.