Method: ActiveSupport::Concurrency::Latch#initialize
- Defined in:
- activesupport/lib/active_support/concurrency/latch.rb
#initialize(count = 1) ⇒ Latch
Returns a new instance of Latch.
7 8 9 10 11 |
# File 'activesupport/lib/active_support/concurrency/latch.rb', line 7 def initialize(count = 1) @count = count @lock = Monitor.new @cv = @lock.new_cond end |