micro_utils.dokka
0.19.5
common
micro_utils.dokka
/
dev.inmo.micro_utils.coroutines
/
safelyWithResult
safely
With
Result
inline suspend
fun
<
T
>
safelyWithResult
(
noinline
block
:
suspend
CoroutineScope
.
(
)
->
T
)
:
Result
<
T
>
inline suspend
fun
<
T
,
R
>
T
.
safelyWithResult
(
noinline
block
:
suspend
T
.
(
)
->
R
)
:
Result
<
R
>