coerce To Success
infix inline fun <Ok : Any, Error : Any> Outcome<Ok, Error>.coerceToSuccess(recover: (Error) -> Ok): Success<Ok>
Returns a new Success, after applying recover to the Failure error.
Transforms
Outcome<Ok, Error>
intoSuccess<Ok>
.This function does not provide a RaiseScope, and makes no guarantees about catching, handling, or rethrowing errors! Use outcomeOf within the transformation lambda for that.