lib/celluloid/proxy/async.rb in celluloid-0.17.2 vs lib/celluloid/proxy/async.rb in celluloid-0.17.3

- old
+ new

@@ -1,22 +1,6 @@ # A proxy which sends asynchronous calls to an actor -class Celluloid::Proxy::Async < Celluloid::Proxy::Abstract - attr_reader :mailbox - - # Used for reflecting on proxy objects themselves - def __class__ - ::Celluloid::Proxy::Async - end - - def initialize(mailbox, klass) - @mailbox = mailbox - @klass = klass - end - - def inspect - "#<Celluloid::Proxy::Async(#{@klass})>" - end - +class Celluloid::Proxy::Async < Celluloid::Proxy::AbstractCall def method_missing(meth, *args, &block) if @mailbox == ::Thread.current[:celluloid_mailbox] args.unshift meth meth = :__send__ end