toggle menu
micro_utils.dokka
0.20.42
common
switch theme
search in API
micro_utils.dokka
/
dev.inmo.micro_utils.coroutines
/
runCatchingSafely
run
Catching
Safely
inline suspend
fun
<
T
>
runCatchingSafely
(
noinline
onException
:
ExceptionHandler
<
T
>
=
defaultSafelyExceptionHandler
,
noinline
block
:
suspend
CoroutineScope
.
(
)
->
T
)
:
Result
<
T
>
(
source
)
inline suspend
fun
<
T
,
R
>
T
.
runCatchingSafely
(
noinline
onException
:
ExceptionHandler
<
R
>
=
defaultSafelyExceptionHandler
,
noinline
block
:
suspend
T
.
(
)
->
R
)
:
Result
<
R
>
(
source
)