class Ractor::MovedError
当尝试访问在 Ractor#send
或 Ractor.yield
中移动的对象时引发。
r = Ractor.new { sleep } ary = [1, 2, 3] r.send(ary, move: true) ary.inspect # Ractor::MovedError (can not send any methods to a moved object)
当尝试访问在 Ractor#send
或 Ractor.yield
中移动的对象时引发。
r = Ractor.new { sleep } ary = [1, 2, 3] r.send(ary, move: true) ary.inspect # Ractor::MovedError (can not send any methods to a moved object)