toggle menu
micro_utils.dokka
0.20.20
common
switch theme
search in API
micro_utils.dokka
/
dev.inmo.micro_utils.coroutines
/
firstOf
first
Of
suspend
fun
<
T
>
CoroutineScope
.
firstOf
(
variants
:
Iterable
<
Deferred
<
T
>
>
,
cancelOnResult
:
Boolean
=
true
)
:
T
(
source
)
suspend
fun
<
T
>
CoroutineScope
.
firstOf
(
cancelOnResult
:
Boolean
=
true
,
block
:
DoWithFirstBuilder
<
T
>
.
(
)
->
Unit
)
:
T
(
source
)
suspend
fun
<
T
>
CoroutineScope
.
firstOf
(
vararg
variants
:
Deferred
<
T
>
,
cancelOnResult
:
Boolean
=
true
)
:
T
(
source
)