Parent

Files

ZMQ::Poller

Public Instance Methods

poll_nonblock() click to toggle source

API sugar to poll non-blocking. Returns immediately if there’s no items in a ready state.

# File lib/zmq/poller.rb, line 6
def poll_nonblock
  poll(0)
end
register_readable(pollable) click to toggle source

API sugar for registering a ZMQ::Socket or IO for readability

# File lib/zmq/poller.rb, line 12
def register_readable(pollable)
  register ZMQ::Pollitem.new(pollable, ZMQ::POLLIN)
end
register_writable(pollable) click to toggle source

API sugar for registering a ZMQ::Socket or IO for writability

# File lib/zmq/poller.rb, line 18
def register_writable(pollable)
  register ZMQ::Pollitem.new(pollable, ZMQ::POLLOUT)
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.