class method
self.new
Ruby on Rails 5.0.7.2
Since v4.0.13 Last seen in v5.0.7.2Signature
self.new(count = 1)
No documentation comment.
Parameters
-
countopt = 1
Source
# File activesupport/lib/active_support/concurrency/latch.rb, line 7
def initialize(count = 1)
if count == 1
ActiveSupport::Deprecation.warn("ActiveSupport::Concurrency::Latch is deprecated. Please use Concurrent::Event instead.")
else
ActiveSupport::Deprecation.warn("ActiveSupport::Concurrency::Latch is deprecated. Please use Concurrent::CountDownLatch instead.")
end
@inner = Concurrent::CountDownLatch.new(count)
end
Defined in activesupport/lib/active_support/concurrency/latch.rb line 7
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveSupport::Concurrency::Latch