Method: HTTPX::Selector#each_connection

Defined in:
lib/httpx/selector.rb

#each_connection(&block) ⇒ Object



90
91
92
93
94
95
96
97
98
99
100
101
# File 'lib/httpx/selector.rb', line 90

def each_connection(&block)
  return enum_for(__method__) unless block

  @selectables.each do |c|
    case c
    when Resolver::Resolver
      c.each_connection(&block)
    when Connection
      yield c
    end
  end
end