Sha256: d8e58d4a31bec2bcd8b87a44d02035812b5a1332e918ed5038efafa786c53bee

Contents?: true

Size: 441 Bytes

Versions: 12

Compression:

Stored size: 441 Bytes

Contents

require 'concurrent/atomic/count_down_latch'

module ActiveSupport
  module Concurrency
    class Latch < Concurrent::CountDownLatch

      def initialize(count = 1)
        ActiveSupport::Deprecation.warn("ActiveSupport::Concurrency::Latch is deprecated. Please use Concurrent::CountDownLatch instead.")
        super(count)
      end

      alias_method :release, :count_down

      def await
        wait(nil)
      end
    end
  end
end

Version data entries

12 entries across 12 versions & 3 rubygems

Version Path
abaci-0.3.0 vendor/bundle/gems/activesupport-5.0.0/lib/active_support/concurrency/latch.rb
second_step-0.1.2 secondstep-notify-1.0.0-osx/lib/ruby/lib/ruby/gems/2.2.0/gems/activesupport-5.0.0.1/lib/active_support/concurrency/latch.rb
activesupport-5.0.0.1 lib/active_support/concurrency/latch.rb
activesupport-5.0.0 lib/active_support/concurrency/latch.rb
activesupport-5.0.0.rc2 lib/active_support/concurrency/latch.rb
activesupport-5.0.0.racecar1 lib/active_support/concurrency/latch.rb
activesupport-5.0.0.rc1 lib/active_support/concurrency/latch.rb
activesupport-5.0.0.beta4 lib/active_support/concurrency/latch.rb
activesupport-5.0.0.beta3 lib/active_support/concurrency/latch.rb
activesupport-5.0.0.beta2 lib/active_support/concurrency/latch.rb
activesupport-5.0.0.beta1.1 lib/active_support/concurrency/latch.rb
activesupport-5.0.0.beta1 lib/active_support/concurrency/latch.rb