Preview Ruby 4.1 is a preview. It can change before the final release. Switch to Ruby 4.0 →
instance method
MonitorMixin#new_cond
() -> ::MonitorMixin::ConditionVariable
new_cond
lib/monitor.rb
View on GitHub ↗
# File tmp/rubies/ruby-4.1.0-preview1/lib/monitor.rb, line 155
def new_cond
unless defined?(@mon_data)
mon_initialize
@mon_initialized_by_new_cond = true
end
return ConditionVariable.new(@mon_data)
end
Creates a new MonitorMixin::ConditionVariable associated with the Monitor object.
See also
#mon_try_enter
#synchronize
#mon_synchronize
#try_mon_enter
also in
4.0 · 3.4 · 3.3 · 3.2 · 3.1 · 3.0