awaitFor

suspend fun awaitFor(timeout: Long = 5000, 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

Link copied to clipboard