Class: Ractor::MovedObject
- Inherits:
- BasicObject
- Defined in:
- ractor.c,
ractor.c
Overview
A special object which replaces any value that was moved to another ractor in Ractor#send or Ractor.yield. Any attempt to access the object results in Ractor::MovedError.
r = Ractor.new { receive }
ary = [1, 2, 3]
r.send(ary, move: true)
p Ractor::MovedObject === ary
# => true
ary.inspect
# Ractor::MovedError (can not send any methods to a moved object)
Instance Method Summary collapse
- #! ⇒ Object
- #!= ⇒ Object
- #== ⇒ Object
- #__id__ ⇒ Object
-
#__send__ ⇒ Object
override methods defined in BasicObject.
- #equal? ⇒ Boolean
- #instance_eval ⇒ Object
- #instance_exec ⇒ Object
- #method_missing ⇒ Object
Dynamic Method Handling
This class handles dynamic methods through the method_missing method