lib/celluloid/actor_proxy.rb in celluloid-0.9.0 vs lib/celluloid/actor_proxy.rb in celluloid-0.9.1
- old
+ new
@@ -7,16 +7,16 @@
def initialize(mailbox, klass = "Object")
@mailbox, @klass = mailbox, klass
end
- def send(meth, *args, &block)
- Actor.call @mailbox, :send, meth, *args, &block
+ def _send_(meth, *args, &block)
+ Actor.call @mailbox, :__send__, meth, *args, &block
end
def class
- Actor.call @mailbox, :send, :class
+ Actor.call @mailbox, :__send__, :class
end
def is_a?(klass)
Actor.call @mailbox, :is_a?, klass
end
@@ -55,10 +55,10 @@
# Terminate the associated actor
def terminate
raise DeadActorError, "actor already terminated" unless alive?
begin
- send :terminate
+ _send_ :terminate
rescue DeadActorError
# In certain cases this is thrown during termination. This is likely
# a bug in Celluloid's internals, but it shouldn't affect the caller.
# FIXME: track this down and fix it, or at the very least log it
end