BooleanWaiter
A coroutine-based waiter that suspends until a boolean value satisfies a condition.
Provides waitUntilTrue and waitUntilFalse convenience methods with optional timeout support. Any number of coroutines may wait concurrently; each is resumed independently when its own condition is met.
Parameters
initValue
the initial boolean value.
Functions
Link copied to clipboard
Updates the monitored value and resumes every waiting coroutine whose predicate is now satisfied.
Link copied to clipboard
Suspends until the value is (or becomes) false, or the timeout expires.
Link copied to clipboard
Suspends until the value is (or becomes) true, or the timeout expires.