Package-level declarations

Functions

Link copied to clipboard
inline fun <T, R> T.runCatchingCancelable(block: T.() -> R): Result<R>

Like runCatching, but rethrows CancellationException to preserve structured concurrency. All other exceptions are captured in the Result.