safelyWithResult

suspend fun <T> safelyWithResult(block: suspend CoroutineScope.() -> T): Result<T>(source)
suspend fun <T, R> T.safelyWithResult(block: suspend T.() -> R): Result<R>(source)