FIXME: This isn’t documented in Nutshell.
Since MonitorMixin.new_cond returns a ConditionVariable, and the example
above calls while_wait and signal, this class should be documented.
| Public Methods |
| broadcast |
Wake up all the waiters.
|
| count_waiters |
|
| new |
|
| signal |
Wake up and run the next waiter
|
| wait |
Create a new timer with the argument timeout, and add the current thread to
the list of waiters. Then the thread is stopped. It will be resumed when a
corresponding #signal occurs.
|
| wait_until |
call #wait until the supplied block returns true.
|
| wait_while |
call #wait while the supplied block returns true.
|
<code/>and<pre/>for code samples.