aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport
diff options
context:
space:
mode:
authorAndrew White <andrew.white@unboxed.co>2016-11-14 12:44:19 +0000
committerAndrew White <andrew.white@unboxed.co>2016-11-14 12:44:19 +0000
commit0d7bd2031b4054fbdeab0a00dd58b1b08fb7fea6 (patch)
tree39a9dee252afb28bd52083fe19bb05822468f88f /activesupport
parent0189f4db6fe518de8909b66b7f30046bac52dedc (diff)
downloadrails-0d7bd2031b4054fbdeab0a00dd58b1b08fb7fea6.tar.gz
rails-0d7bd2031b4054fbdeab0a00dd58b1b08fb7fea6.tar.bz2
rails-0d7bd2031b4054fbdeab0a00dd58b1b08fb7fea6.zip
Remove deprecated class ActiveSupport::Concurrency::Latch
Diffstat (limited to 'activesupport')
-rw-r--r--activesupport/CHANGELOG.md4
-rw-r--r--activesupport/lib/active_support/concurrency/latch.rb25
2 files changed, 4 insertions, 25 deletions
diff --git a/activesupport/CHANGELOG.md b/activesupport/CHANGELOG.md
index 0a51eaf565..c7de25a9eb 100644
--- a/activesupport/CHANGELOG.md
+++ b/activesupport/CHANGELOG.md
@@ -1,3 +1,7 @@
+* Remove deprecated class `ActiveSupport::Concurrency::Latch`
+
+ *Andrew White*
+
* Remove deprecated separator argument from `parameterize`
*Andrew White*
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