class Uh::WM::Workers::Mux
Constants
- TIMEOUT_DEFAULT
Public Class Methods
new(timeout: TIMEOUT_DEFAULT)
click to toggle source
Calls superclass method
Uh::WM::Workers::Base::new
# File lib/uh/wm/workers/mux.rb, line 7 def initialize timeout: TIMEOUT_DEFAULT super @timeout = timeout end
Public Instance Methods
work_events()
click to toggle source
# File lib/uh/wm/workers/mux.rb, line 12 def work_events @before_watch.call if @before_watch if res = select(@ios, [], [], @timeout) then @on_read.call res else @on_timeout.call if @on_timeout end end