Package-level declarations
Properties
Property alias for flattenNestedFailure.
Property alias for flattenNestedBoth.
Property alias for flattenNestedSuccess.
Functions
Transforms the Success value of this Outcome, wrapping the result with outcome error-catching semantics.
Transforms the Success value of this Outcome, wrapping the result with outcomeOf error-catching semantics.
Suspend variant of catchException builder.
Suspend variant of catchString builder.
fun <OuterError, Ok : OuterError, InnerError> Outcome<Ok, InnerError>.errorOrRaise(): InnerError
Returns the Failure error, or short-circuits the surrounding RaiseScope with the Success value.
fun <OuterError, Ok, InnerError : OuterError> Outcome<Ok, InnerError>.getOrRaise(): Ok
Returns the Success value, or short-circuits the surrounding RaiseScope with the Failure error.
Returns a new OutcomeFlow with each Failure error transformed by transform. Success outcomes pass through unaffected.
Returns a new OutcomeFlow with each Success value transformed by transform. Failure outcomes pass through unaffected.
Returns an OutcomeFlow that invokes block for each Failure outcome before emitting it downstream. Success outcomes pass through unaffected.
Returns an OutcomeFlow that invokes block for each Success outcome before emitting it downstream. Failure outcomes pass through unaffected.