runCatchingSafely

suspend fun <T> runCatchingSafely(onException: ExceptionHandler<T> = defaultSafelyExceptionHandler, block: suspend CoroutineScope.() -> T): Result<T>(source)
suspend fun <T, R> T.runCatchingSafely(onException: ExceptionHandler<R> = defaultSafelyExceptionHandler, block: suspend T.() -> R): Result<R>(source)