awaitCount

fun awaitCount(count: Int, timeout: Long = 5000)

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

Link copied to clipboard