GenericValueWaiter
Abstract coroutine-based waiter that suspends until a monitored value satisfies a condition.
Subclasses define the satisfaction condition via monitorSatisfied. The value can be updated with checkCondition, which notifies any waiting coroutine when the condition is met.
Parameters
initValue
the initial value.
Type Parameters
T
the type of the monitored value.