diff options
author | Jerry D'Antonio <stumpjumper@gmail.com> | 2015-11-02 21:30:50 -0500 |
---|---|---|
committer | Jerry D'Antonio <stumpjumper@gmail.com> | 2015-11-04 21:12:28 -0500 |
commit | 23b6f65fd130c29e5f6ea69e09f6381cf7e34e27 (patch) | |
tree | 55fd54004ac262b1d51dd1b9573a7f2b4efb8797 /activesupport/lib/active_support/concurrency | |
parent | 23bb31b158fe10e5872dc80634a7ff172531c570 (diff) | |
download | rails-23b6f65fd130c29e5f6ea69e09f6381cf7e34e27.tar.gz rails-23b6f65fd130c29e5f6ea69e09f6381cf7e34e27.tar.bz2 rails-23b6f65fd130c29e5f6ea69e09f6381cf7e34e27.zip |
Require only necessary concurrent-ruby classes.
Diffstat (limited to 'activesupport/lib/active_support/concurrency')
-rw-r--r-- | activesupport/lib/active_support/concurrency/latch.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/activesupport/lib/active_support/concurrency/latch.rb b/activesupport/lib/active_support/concurrency/latch.rb index 7b8df0df04..4abe5ece6f 100644 --- a/activesupport/lib/active_support/concurrency/latch.rb +++ b/activesupport/lib/active_support/concurrency/latch.rb @@ -1,4 +1,4 @@ -require 'concurrent/atomics' +require 'concurrent/atomic/count_down_latch' module ActiveSupport module Concurrency @@ -8,7 +8,7 @@ module ActiveSupport ActiveSupport::Deprecation.warn("ActiveSupport::Concurrency::Latch is deprecated. Please use Concurrent::CountDownLatch instead.") super(count) end - + alias_method :release, :count_down def await |