Maintenance Ruby 3.4 gets fixes, but no new features. Switch to Ruby 4.0 →
class method · added in Ruby 3.4
Ractor.[]
(::Symbol) -> untyped
[](sym)
ractor.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.4.1/ractor.rb, line 851
def self.[](sym)
Primitive.ractor_local_value(sym)
end
get a value from ractor-local storage of current Ractor
Ruby version changes
-
3.4
-
Ractor.[]andRactor.[]=are added to access the ractor local storage of the currentRactor. [Feature #20715]
-