AbstractProxy
A proxy which creates future calls to an actor
Used for reflecting on proxy objects themselves
# File lib/celluloid/proxies/future_proxy.rb, line 7 def __class__; FutureProxy; end
# File lib/celluloid/proxies/future_proxy.rb, line 13 def inspect "#<Celluloid::FutureProxy(#{@klass})>" end
# File lib/celluloid/proxies/future_proxy.rb, line 17 def method_missing(meth, *args, &block) unless @mailbox.alive? raise DeadActorError, "attempted to call a dead actor" end if block_given? # FIXME: nicer exception raise "Cannot use blocks with futures yet" end future = Future.new call = SyncCall.new(future, meth, args, block) @mailbox << call future end
Generated with the Darkfish Rdoc Generator 2.