Sha256: a9ec4eb480eb7d93390bfc5bddcc6c98ce226413f69b998c588e5d29f142c591

Contents?: true

Size: 369 Bytes

Versions: 3

Compression:

Stored size: 369 Bytes

Contents

module Celluloid
  module ZMQ
    # A Celluloid mailbox for Actors that wait on 0MQ sockets
    class Mailbox < Celluloid::IO::Mailbox
      def initialize
        # More APIs and less monkeypatching would be useful here
        @messages = []
        @lock    = Mutex.new
        @waker   = Waker.new
        @reactor = Reactor.new(@waker)
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 2 rubygems

Version Path
dcell-0.7.1 celluloid-zmq/lib/celluloid/zmq/mailbox.rb
celluloid-zmq-0.7.0 lib/celluloid/zmq/mailbox.rb
celluloid-zmq-0.0.4 lib/celluloid/zmq/mailbox.rb