waitForCalls

suspend fun waitForCalls(count: Int, timeout: Duration = 2.seconds): List<T>(source)

Waits in real time until at least count calls have been recorded.

Return

A snapshot containing at least count calls.

Parameters

count

The nonnegative minimum call count.

timeout

The total monotonic wait budget.

Throws

with the last history when the deadline passes.