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.0.0/ractor.rb, line 368
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.
-