mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
parent
3ab41acd36
commit
155cd7fd2a
1 changed files with 1 additions and 1 deletions
|
|
@ -17,7 +17,7 @@ module Psych
|
|||
|
||||
if defined?(Ractor)
|
||||
def dispatch
|
||||
Ractor.current[:Psych_Visitors_Visitor] ||= Visitor.dispatch_cache
|
||||
@dispatch_cache ||= (Ractor.current[:Psych_Visitors_Visitor] ||= Visitor.dispatch_cache)
|
||||
end
|
||||
else
|
||||
DISPATCH = dispatch_cache
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue