waitForCalls

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

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

Return

A snapshot of the recorded requests.

Parameters

count

The nonnegative minimum number of calls.

timeout

The real-time observation budget.

Throws

with the last snapshot when the deadline passes.