httpx/sig/pool.rbs
HoneyryderChuck efddd72caa removing persistent connections from the selector whe inactive
keeping them around was resulting in some busy loops on timer events
(i.e. retry after), making them unreliable, innacurate  and CPU
draining. they're now kept out whenever they're inactive.
2021-09-27 16:18:02 +01:00

42 lines
975 B
Plaintext

module HTTPX
class Pool
def empty?: () -> void
def next_tick: () -> void
def close: (*Array[Connection]) -> void
def init_connection: (Connection, Options) -> void
def find_connection: (generic_uri, Options) -> Connection?
def deactivate: (*Array[Connection]) -> void
private
def initialize: () -> untyped
def resolve_connection: (Connection) -> void
def on_resolver_connection: (Connection) -> void
def on_resolver_error: (Connection, StandardError) -> void
def on_resolver_close: (resolver) -> void
def register_connection: (Connection) -> void
def unregister_connection: (Connection) -> void
def select_connection: (resolver | Connection connection) -> void
def deselect_connection: (resolver | Connection connection) -> void
def coalesce_connections: (Connection, Connection) -> void
def next_timeout: () -> Numeric?
def find_resolver_for: (Connection) -> resolver
end
end