Class: Uh::WM::Workers::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/uh/wm/workers/base.rb

Direct Known Subclasses

Blocking, KQueue, Mux

Constant Summary collapse

CALLBACKS =
%w[before_watch on_timeout on_read on_read_next].freeze

Instance Method Summary collapse

Constructor Details

#initialize(*_options) ⇒ Base

Returns a new instance of Base.



7
8
9
# File 'lib/uh/wm/workers/base.rb', line 7

def initialize *_options
  @ios = []
end

Instance Method Details

#watch(io) ⇒ Object



11
12
13
# File 'lib/uh/wm/workers/base.rb', line 11

def watch io
  @ios << io.to_io
end