micro_utils.dokka
0.17.1
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
>