waitUntil

fun waitUntil(value: Boolean, waitTime: Duration): Boolean

Blocks until the condition matches value or the timeout expires.

Return

true if the condition was satisfied, false if the wait timed out.

Parameters

value

true to wait for the condition to become true, false for false.

waitTime

the maximum duration to wait.


fun waitUntil(value: Boolean)

Blocks indefinitely until the condition matches value.

Parameters

value

true to wait for the condition to become true, false for false.