recover
infix inline fun <T : Exception, R> ApiResult<R>.recover(another: (e: T) -> ApiResult<R>): ApiResult<R>
Recover from an exception of type R, else no-op. Does not affect Loading.
Overload for a lambda that already returns an ApiResult.
See also
Recover from an exception. Does not affect Loading See also the typed version of this function to recover from a specific exception type