class ReactorActorM::RactorActor::RactorMessage
Internally used RactorMessage
with Backchannel
Attributes
backchannel[R]
method[R]
obj[R]
Public Class Methods
new(method, obj = nil)
click to toggle source
# File lib/ractor_actor.rb, line 14 def initialize(method, obj = nil) @obj = Ractor.make_shareable obj, copy: true @method = method @backchannel = Ractor.new do val = Ractor.recv Ractor.yield val end end