awaitCount

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

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