toggle menu
micro_utils.dokka
0.20.52
common
switch theme
search in API
micro_utils.dokka
/
dev.inmo.micro_utils.coroutines
/
runCatchingSafely
run
Catching
Safely
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
)