class Evt::Select
Public Class Methods
available?()
click to toggle source
# File lib/evt/backends/select.rb, line 4 def self.available? self.respond_to?(:select_backend) end
backend()
click to toggle source
# File lib/evt/backends/select.rb, line 8 def self.backend self.select_backend end
Public Instance Methods
deregister(io)
click to toggle source
# File lib/evt/backends/select.rb, line 20 def deregister(io) end
init_selector()
click to toggle source
# File lib/evt/backends/select.rb, line 12 def init_selector # Select is stateless end
register(io, interest)
click to toggle source
# File lib/evt/backends/select.rb, line 16 def register(io, interest) # Select is stateless end
wait()
click to toggle source
# File lib/evt/backends/select.rb, line 23 def wait select_wait rescue IOError => _ collect(true) return [], [] rescue Errno::EBADF => _ collect(true) return [], [] end