Class: Ractor::MovedObject
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
ary.inspect
Instance Method Summary
collapse
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
[View source]
1938
1939
1940
1941
1942
|
# File 'ractor.c', line 1938
static VALUE
ractor_moved_missing(int argc, VALUE *argv, VALUE self)
{
rb_raise(rb_eRactorMovedError, "can not send any methods to a moved object");
}
|
Instance Method Details
[View source]
1938
1939
1940
1941
1942
|
# File 'ractor.c', line 1938
static VALUE
ractor_moved_missing(int argc, VALUE *argv, VALUE self)
{
rb_raise(rb_eRactorMovedError, "can not send any methods to a moved object");
}
|
[View source]
1938
1939
1940
1941
1942
|
# File 'ractor.c', line 1938
static VALUE
ractor_moved_missing(int argc, VALUE *argv, VALUE self)
{
rb_raise(rb_eRactorMovedError, "can not send any methods to a moved object");
}
|
[View source]
1938
1939
1940
1941
1942
|
# File 'ractor.c', line 1938
static VALUE
ractor_moved_missing(int argc, VALUE *argv, VALUE self)
{
rb_raise(rb_eRactorMovedError, "can not send any methods to a moved object");
}
|
[View source]
1938
1939
1940
1941
1942
|
# File 'ractor.c', line 1938
static VALUE
ractor_moved_missing(int argc, VALUE *argv, VALUE self)
{
rb_raise(rb_eRactorMovedError, "can not send any methods to a moved object");
}
|
override methods defined in BasicObject
[View source]
1938
1939
1940
1941
1942
|
# File 'ractor.c', line 1938
static VALUE
ractor_moved_missing(int argc, VALUE *argv, VALUE self)
{
rb_raise(rb_eRactorMovedError, "can not send any methods to a moved object");
}
|
permalink
#equal?(*args) ⇒ Boolean
[View source]
1938
1939
1940
1941
1942
|
# File 'ractor.c', line 1938
static VALUE
ractor_moved_missing(int argc, VALUE *argv, VALUE self)
{
rb_raise(rb_eRactorMovedError, "can not send any methods to a moved object");
}
|
[View source]
1938
1939
1940
1941
1942
|
# File 'ractor.c', line 1938
static VALUE
ractor_moved_missing(int argc, VALUE *argv, VALUE self)
{
rb_raise(rb_eRactorMovedError, "can not send any methods to a moved object");
}
|
[View source]
1938
1939
1940
1941
1942
|
# File 'ractor.c', line 1938
static VALUE
ractor_moved_missing(int argc, VALUE *argv, VALUE self)
{
rb_raise(rb_eRactorMovedError, "can not send any methods to a moved object");
}
|