awaitCountSuspending

suspend fun awaitCountSuspending(count: Int, timeout: Long = 5000L)

Awaits until the specified count of elements has been received or the timeout is hit.

Parameters

count

The awaited element count.

timeout

How long to wait for in milliseconds

Sources

common source
Link copied to clipboard