類別 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)