We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 58223f0 commit 285c461Copy full SHA for 285c461
lib/psych/visitors/visitor.rb
@@ -17,7 +17,7 @@ def self.dispatch_cache
17
18
if defined?(Ractor)
19
def dispatch
20
- Ractor.current[:Psych_Visitors_Visitor] ||= Visitor.dispatch_cache
+ @dispatch_cache ||= (Ractor.current[:Psych_Visitors_Visitor] ||= Visitor.dispatch_cache)
21
end
22
else
23
DISPATCH = dispatch_cache
0 commit comments