End of Life Ruby 3.2 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
instance method
MonitorMixin::ConditionVariable#wait
wait(timeout = nil)
ext/monitor/lib/monitor.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.2.0/ext/monitor/lib/monitor.rb, line 106
def wait(timeout = nil)
@monitor.mon_check_owner
@monitor.wait_for_cond(@cond, timeout)
end
Releases the lock held in the associated monitor and waits; reacquires the lock on wakeup.
If timeout is given, this method returns after timeout seconds passed, even if no other thread doesn’t signal.