Module: EM::EioHandler

Defined in:
lib/eio/eventmachine.rb

Overview

The Eventmachine handler watches the read end of a pipe which wakes up the event loop whenever there’s results to process. This is entirely driven from libeio which writes a char to the write end of the pipe to wake up the loop. The EIO.poll callback will fire as many times as it needs to as we don’t read data # from the pipe through the reactor. A separate callback invoked by libeio will read the char and clear it’s readable state.

Instance Method Summary collapse

Instance Method Details

#notify_readableObject



12
13
14
# File 'lib/eio/eventmachine.rb', line 12

def notify_readable
  EIO.poll
end