instance method
release
Ruby on Rails 4.2.9
Since v4.0.13 Last seen in v4.2.9Signature
release()
No documentation comment.
Source
# 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
Defined in activesupport/lib/active_support/concurrency/latch.rb line 13
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveSupport::Concurrency::Latch