Sha256: d9cb2762b8e950394d7600c117291856c67dd250c450859aa5461937f606a179

Contents?: true

Size: 508 Bytes

Versions: 28

Compression:

Stored size: 508 Bytes

Contents

# encoding: utf-8

class ZMQ::Poller

  # API sugar to poll non-blocking. Returns immediately if there's no items in a ready state.
  #
  def poll_nonblock
    poll(0)
  end

  # API sugar for registering a ZMQ::Socket or IO for readability
  #
  def register_readable(pollable)
    register ZMQ::Pollitem.new(pollable, ZMQ::POLLIN)
  end

  # API sugar for registering a ZMQ::Socket or IO for writability
  #
  def register_writable(pollable)
    register ZMQ::Pollitem.new(pollable, ZMQ::POLLOUT)
  end
end

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
rbczmq-1.7.9 lib/zmq/poller.rb
rbczmq-1.7.8 lib/zmq/poller.rb
rbczmq-1.7.7 lib/zmq/poller.rb
rbczmq-1.7.6 lib/zmq/poller.rb
rbczmq-1.7.5 lib/zmq/poller.rb
rbczmq-1.7.4 lib/zmq/poller.rb
rbczmq-1.7.3 lib/zmq/poller.rb
rbczmq-1.7.2 lib/zmq/poller.rb
rbczmq-1.7.1 lib/zmq/poller.rb
rbczmq-1.7.0 lib/zmq/poller.rb
rbczmq-1.6.4 lib/zmq/poller.rb
rbczmq-1.6.2 lib/zmq/poller.rb
rbczmq-1.6 lib/zmq/poller.rb
rbczmq-1.5 lib/zmq/poller.rb
rbczmq-1.4 lib/zmq/poller.rb
rbczmq-1.3 lib/zmq/poller.rb
rbczmq-1.2 lib/zmq/poller.rb
rbczmq-1.1 lib/zmq/poller.rb
rbczmq-1.0 lib/zmq/poller.rb
rbczmq-0.9 lib/zmq/poller.rb