A proxy which sends asynchronous calls to an actor
Used for reflecting on proxy objects themselves
# File lib/celluloid/proxies/async_proxy.rb, line 7 def __class__; AsyncProxy; end
# File lib/celluloid/proxies/async_proxy.rb, line 13 def inspect "#<Celluloid::AsyncProxy(#{@klass})>" end
# File lib/celluloid/proxies/async_proxy.rb, line 17 def method_missing(meth, *args, &block) if @mailbox == ::Thread.current[:celluloid_mailbox] args.unshift meth meth = :__send__ end if block_given? # FIXME: nicer exception raise "Cannot use blocks with async yet" end @mailbox << AsyncCall.new(meth, args, block) end
Generated with the Darkfish Rdoc Generator 2.