Class: EventMachine::LoopbreakReader

Inherits:
Selectable show all
Defined in:
lib/pr_eventmachine.rb

Instance Attribute Summary

Attributes inherited from Selectable

#io, #uuid

Instance Method Summary collapse

Methods inherited from Selectable

#close_scheduled?, #get_peername, #heartbeat, #initialize, #select_for_writing?, #set_inactivity_timeout

Constructor Details

This class inherits a constructor from EventMachine::Selectable

Instance Method Details

#eventable_readObject



885
886
887
888
# File 'lib/pr_eventmachine.rb', line 885

def eventable_read
      io.sysread(128)
      EventMachine::event_callback "", LoopbreakSignalled, ""
end

#select_for_reading?Boolean

Returns:

  • (Boolean)


881
882
883
# File 'lib/pr_eventmachine.rb', line 881

def select_for_reading?
  true
end