recoverSuspendCatching

inline suspend fun <R, T : R> Result<T>.recoverSuspendCatching(transform: suspend (exception: Throwable) -> R): Result<R>

Coroutine-safe alternative to Result.recoverCatching.

Like Result.recoverCatching, executes transform on the encapsulated Throwable exception if this instance represents failure. Returns the encapsulated result of the transformation, but explicitly rethrows CancellationException.

See kotlinx.coroutines#1814.