update safelyWithResult

This commit is contained in:
InsanusMokrassar 2021-06-05 15:18:09 +06:00
parent 623e0cd369
commit 04ef371337
1 changed files with 1 additions and 3 deletions

View File

@ -117,9 +117,7 @@ suspend inline fun <T> runCatchingSafely(
suspend inline fun <T> safelyWithResult(
noinline block: suspend CoroutineScope.() -> T
): Result<T> = runCatching {
safely({ throw it }, block)
}
): Result<T> = runCatchingSafely(defaultSafelyExceptionHandler, block)
/**
* Use this handler in cases you wish to include handling of exceptions by [defaultSafelyWithoutExceptionHandler] and