waitUntilFalse

suspend fun waitUntilFalse(timeoutDuration: Duration = Duration.INFINITE): Boolean

Suspends until the value is (or becomes) false, or the timeout expires.

Return

true if the value was false before the timeout, false if the timeout expired.

Parameters

timeoutDuration

the maximum duration to wait; zero or negative checks once without waiting. Defaults to Duration.INFINITE.