Method: ActiveSupport::Concurrency::Latch#release
- Defined in:
- activesupport/lib/active_support/concurrency/latch.rb
#release ⇒ Object
13 14 15 16 17 18 |
# File 'activesupport/lib/active_support/concurrency/latch.rb', line 13 def release @lock.synchronize do @count -= 1 if @count > 0 @cv.broadcast if @count.zero? end end |