Ruby MonitorMixin::ConditionVariable Functions

EditRocket provides the following information on MonitorMixin::ConditionVariable functions in the Ruby source code builder.

broadcast() - Wake up all the waiters.

count_waiters() -

new(monitor) -

signal() - Wake up and run the next waiter

wait(timeout = nil) - "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."