Preview Ruby 4.1 is a preview. It can change before the final release. Switch to Ruby 4.0 →
instance method
Ractor#send
(untyped obj, ?move: ::boolish) -> ::Ractor
ractor.send(msg, move: false) → self
ractor.rb
View on GitHub ↗
# File tmp/rubies/ruby-4.1.0-preview1/ractor.rb, line 387
def send(...)
default_port.send(...)
self
end
This is equivalent to Port#send to the ractor’s default_port.
Ruby version changes
-
4.0
-
Ractor#default_portwas added. EachRactorhas a default port, which is used byRactor.send,Ractor.receive.
-