await For
suspend fun awaitFor(timeout: Long = 5000L, condition: TestFlowObserver<T>.() -> Boolean)
Content copied to clipboard
Awaits until the specified condition is fulfilled or the timeout is hit.
Parameters
timeout
How long to wait for in milliseconds
condition
The awaited condition
Sources
common source
Link copied to clipboard