Kaluga
Toggle table of contents
common
Target filter
common
Switch theme
Search in API
Skip to content
Kaluga
test-utils-base
/
com.splendo.kaluga.test.base
/
awaitFirst
await
First
suspend
fun
<
T
>
Flow
<
T
>
.
awaitFirst
(
message
:
String
=
""
,
timeout
:
Duration
=
defaultTimeout
,
condition
:
suspend
(
T
)
->
Boolean
=
{ true }
)
:
T
Return
the first element matching
condition
within
timeout
.