Class: ActiveSupport::Concurrency::Latch
- Inherits:
-
Concurrent::CountDownLatch
- Object
- Concurrent::CountDownLatch
- ActiveSupport::Concurrency::Latch
- Defined in:
- lib/active_support/concurrency/latch.rb
Instance Method Summary collapse
- #await ⇒ Object
-
#initialize(count = 1) ⇒ Latch
constructor
A new instance of Latch.
Constructor Details
#initialize(count = 1) ⇒ Latch
Returns a new instance of Latch.
7 8 9 10 |
# File 'lib/active_support/concurrency/latch.rb', line 7 def initialize(count = 1) ActiveSupport::Deprecation.warn("ActiveSupport::Concurrency::Latch is deprecated. Please use Concurrent::CountDownLatch instead.") super(count) end |
Instance Method Details
#await ⇒ Object
14 15 16 |
# File 'lib/active_support/concurrency/latch.rb', line 14 def await wait(nil) end |