File tree Expand file tree Collapse file tree 1 file changed +6
-9
lines changed
lib/concurrent-ruby/concurrent Expand file tree Collapse file tree 1 file changed +6
-9
lines changed Original file line number Diff line number Diff line change @@ -15,14 +15,12 @@ module Collection
15
15
when Concurrent . on_cruby?
16
16
require 'concurrent/collection/map/mri_map_backend'
17
17
MriMapBackend
18
- when Concurrent . on_rbx? || Concurrent . on_truffleruby?
19
- if defined? ( ::TruffleRuby ::ConcurrentMap )
20
- require 'concurrent/collection/map/truffleruby_map_backend'
21
- TruffleRubyMapBackend
22
- else
23
- require 'concurrent/collection/map/atomic_reference_map_backend'
24
- AtomicReferenceMapBackend
25
- end
18
+ when Concurrent . on_truffleruby? && defined? ( ::TruffleRuby ::ConcurrentMap )
19
+ require 'concurrent/collection/map/truffleruby_map_backend'
20
+ TruffleRubyMapBackend
21
+ when Concurrent . on_truffleruby? || Concurrent . on_rbx?
22
+ require 'concurrent/collection/map/atomic_reference_map_backend'
23
+ AtomicReferenceMapBackend
26
24
else
27
25
warn 'Concurrent::Map: unsupported Ruby engine, using a fully synchronized Concurrent::Map implementation'
28
26
require 'concurrent/collection/map/synchronized_map_backend'
@@ -119,7 +117,6 @@ class Map < Collection::MapImplementation
119
117
# @return [true, false] true if deleted
120
118
# @!macro map.atomic_method
121
119
122
-
123
120
def initialize ( options = nil , &block )
124
121
if options . kind_of? ( ::Hash )
125
122
validate_options_hash! ( options )
You can’t perform that action at this time.
0 commit comments