micro_utils.dokka
0.19.0
common
micro_utils.dokka
/
dev.inmo.micro_utils.coroutines
/
invokeOnFirst
invoke
On
First
suspend
fun
<
T
,
O
>
Iterable
<
Deferred
<
T
>
>
.
invokeOnFirst
(
scope
:
CoroutineScope
,
cancelOnResult
:
Boolean
=
true
,
callback
:
suspend
(
T
)
->
O
)
:
O
suspend
fun
<
T
,
O
>
invokeOnFirst
(
scope
:
CoroutineScope
,
vararg
variants
:
Deferred
<
T
>
,
cancelOnResult
:
Boolean
=
true
,
callback
:
suspend
(
T
)
->
O
)
:
O