Method: HTTPX::Selector#initialize

Defined in:
lib/httpx/selector.rb

#initializeSelector

Returns a new instance of Selector.



43
44
45
46
47
48
49
# File 'lib/httpx/selector.rb', line 43

def initialize
  @readers = {}
  @writers = {}
  @lock = Mutex.new
  @__r__, @__w__ = IO.pipe
  @closed = false
end