Method: Concurrent::IVar#fail
- Defined in:
- lib/concurrent/ivar.rb
#fail(reason = StandardError.new) ⇒ IVar
Set the ‘IVar` to failed due to some error and wake or notify all threads waiting on it.
134 135 136 |
# File 'lib/concurrent/ivar.rb', line 134 def fail(reason = StandardError.new) complete(false, nil, reason) end |