BooleanMonitor
A GenericMonitor implementation backed by an atomic boolean value.
Threads can block until the value becomes true or false using the inherited waitUntilTrue and waitUntilFalse methods from GenericMonitor.
Parameters
the initial boolean value.
Properties
Functions
Blocks the current thread until monitorSatisfied returns false. This method is not interruptible.
Blocks the current thread until monitorSatisfied returns false or the timeout expires. This method is not interruptible.
Repeatedly waits for the condition to become false, invoking block on each timeout.
Repeatedly waits for the condition to become false, invoking block on each timeout, up to an overall maximum wait duration.
Blocks the current thread until monitorSatisfied returns true. This method is not interruptible.
Blocks the current thread until monitorSatisfied returns true or the timeout expires. This method is not interruptible.
Repeatedly waits for the condition to become true, invoking block on each timeout.
Repeatedly waits for the condition to become true, invoking block on each timeout, up to an overall maximum wait duration.
Blocks the current thread until monitorSatisfied returns true. This method can be interrupted.
The timed waitUntilTrueWithInterruption for Java callers: the overload taking a Kotlin Duration is compiled under a mangled name that Java cannot call.
Blocks the current thread until monitorSatisfied returns true or the timeout expires. This method can be interrupted.
The retrying waitUntilTrueWithInterruption for Java callers; see the java.time.Duration waitUntilTrueWithInterruption.
Repeatedly waits (interruptibly) for the condition to become true, invoking block on each timeout.
The retrying waitUntilTrueWithInterruption with an overall limit, for Java callers; see the java.time.Duration waitUntilTrueWithInterruption. A maxWait too long for a Kotlin Duration, such as java.time.Duration.ofSeconds(Long.MAX_VALUE), waits without limit.
Repeatedly waits (interruptibly) for the condition to become true, invoking block on each timeout, up to an overall maximum wait duration.