lib/celluloid/actor_proxy.rb in celluloid-0.6.1 vs lib/celluloid/actor_proxy.rb in celluloid-0.6.2
- old
+ new
@@ -32,11 +32,12 @@
def to_s
Actor.call @mailbox, :to_s
end
def inspect
- "#<Celluloid::Actor(#{@klass}) dead>" unless alive?
Actor.call @mailbox, :inspect
+ rescue DeadActorError
+ "#<Celluloid::Actor(#{@klass}) dead>"
end
# Create a Celluloid::Future which calls a given method
def future(method_name, *args, &block)
Celluloid::Future.new { Actor.call @mailbox, method_name, *args, &block }