Skip to content

Commit 0228295

Browse files
committed
Added legacy Atomic class with deprecation warning.
1 parent 356587f commit 0228295

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

lib/concurrent/atomic.rb

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,10 @@
1111
warn "#{__FILE__}:#{__LINE__}: unsupported Ruby engine `#{RUBY_ENGINE}', using less-efficient Atomic impl"
1212
require 'concurrent/atomic_reference/fallback'
1313
end
14+
15+
class Atomic < Concurrent::Atomic
16+
def initialize(*args)
17+
warn "[DEPRECATED] Please use Concurrent::Atomic instead."
18+
super
19+
end
20+
end

0 commit comments

Comments
 (0)