File tree Expand file tree Collapse file tree 1 file changed +12
-2
lines changed
Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -834,16 +834,26 @@ def self.make_shareable obj, copy: false
834834 end
835835 end
836836
837- # get a value from ractor-local storage
837+ # get a value from ractor-local storage of current Ractor
838838 def []( sym )
839839 Primitive . ractor_local_value ( sym )
840840 end
841841
842- # set a value in ractor-local storage
842+ # set a value in ractor-local storage of current Ractor
843843 def []=( sym , val )
844844 Primitive . ractor_local_value_set ( sym , val )
845845 end
846846
847+ # get a value from ractor-local storage of current Ractor
848+ def self . []( sym )
849+ Primitive . ractor_local_value ( sym )
850+ end
851+
852+ # set a value in ractor-local storage of current Ractor
853+ def self . []=( sym , val )
854+ Primitive . ractor_local_value_set ( sym , val )
855+ end
856+
847857 # returns main ractor
848858 def self . main
849859 __builtin_cexpr! %q{
You can’t perform that action at this time.
0 commit comments