class QuackConcurrency::SafeConditionVariable
{SafeConditionVariable} is similar to {ConditionVariable}.
The key distinction is that every call to {#wait} can only be resumed via the {SafeConditionVariable} (not with +Thread#run+, +Thread#wakeup+, etc.)
Private Instance Methods
waitable_for_current_thread()
click to toggle source
Returns a waitable object for current thread. @api private @return [Waitable]
# File lib/quack_concurrency/safe_condition_variable.rb, line 18 def waitable_for_current_thread Waitable.new(self) end