Package-level declarations

Functions

Link copied to clipboard
inline suspend fun <T, R> Result<T>.mapSuspendCatching(transform: suspend (T) -> R): Result<R>

Coroutine-safe alternative to Result.mapCatching.

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

Coroutine-safe alternative to Result.recoverCatching.

Link copied to clipboard
Link copied to clipboard
inline suspend fun <T> runSuspendCatching(block: suspend () -> T): Result<T>

Coroutine-safe alternative to runCatching.

Link copied to clipboard
suspend fun <T> suspendCatchingNonCancellation(block: suspend () -> T): Result<T>