Class: EventMachine::LoopbreakReader

Inherits:
Selectable show all
Defined in:
lib/em/pure_ruby.rb

Instance Attribute Summary

Attributes inherited from Selectable

#io, #is_server, #uuid

Instance Method Summary collapse

Methods inherited from Selectable

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

Constructor Details

This class inherits a constructor from EventMachine::Selectable

Instance Method Details

#eventable_readObject



1180
1181
1182
1183
# File 'lib/em/pure_ruby.rb', line 1180

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

#select_for_reading?Boolean

Returns:

  • (Boolean)


1176
1177
1178
# File 'lib/em/pure_ruby.rb', line 1176

def select_for_reading?
  true
end