awaitFor

suspend fun awaitFor(timeout: Long = 5000L, condition: TestFlowObserver<T>.() -> Boolean)

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

(source)
Link copied to clipboard