Method: ActiveSupport::Concurrency::Latch#await
- Defined in:
- activesupport/lib/active_support/concurrency/latch.rb
#await ⇒ Object
20 21 22 23 24 |
# File 'activesupport/lib/active_support/concurrency/latch.rb', line 20 def await @lock.synchronize do @cv.wait_while { @count > 0 } end end |