diff options
author | Andrew White <andrew.white@unboxed.co> | 2016-11-14 12:44:19 +0000 |
---|---|---|
committer | Andrew White <andrew.white@unboxed.co> | 2016-11-14 12:44:19 +0000 |
commit | 0d7bd2031b4054fbdeab0a00dd58b1b08fb7fea6 (patch) | |
tree | 39a9dee252afb28bd52083fe19bb05822468f88f /activesupport/lib/active_support/concurrency | |
parent | 0189f4db6fe518de8909b66b7f30046bac52dedc (diff) | |
download | rails-0d7bd2031b4054fbdeab0a00dd58b1b08fb7fea6.tar.gz rails-0d7bd2031b4054fbdeab0a00dd58b1b08fb7fea6.tar.bz2 rails-0d7bd2031b4054fbdeab0a00dd58b1b08fb7fea6.zip |
Remove deprecated class ActiveSupport::Concurrency::Latch
Diffstat (limited to 'activesupport/lib/active_support/concurrency')
-rw-r--r-- | activesupport/lib/active_support/concurrency/latch.rb | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/activesupport/lib/active_support/concurrency/latch.rb b/activesupport/lib/active_support/concurrency/latch.rb deleted file mode 100644 index 53e09b685c..0000000000 --- a/activesupport/lib/active_support/concurrency/latch.rb +++ /dev/null @@ -1,25 +0,0 @@ -require "concurrent/atomic/count_down_latch" - -module ActiveSupport - module Concurrency - class Latch - 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 - - def release - @inner.count_down - end - - def await - @inner.wait(nil) - end - end - end -end |