sig/pool.rbs in httpx-0.18.7 vs sig/pool.rbs in httpx-0.19.0

- old
+ new

@@ -1,16 +1,24 @@ module HTTPX class Pool + type resolver_manager = Resolver::Multi | Resolver::System + + @resolvers: Hash[Class, resolver_manager] + @timers: Timers + @selector: Selector + @connections: Array[Connection] + @connected_connections: Integer + def empty?: () -> void def next_tick: () -> void - def close: (*Array[Connection]) -> void + def close: (?Array[Connection] connections) -> void - def init_connection: (Connection, Options) -> void + def init_connection: (Connection connection, Options options) -> void - def find_connection: (generic_uri, Options) -> Connection? + def find_connection: (URI::Generic uri, Options options) -> Connection? def deactivate: (*Array[Connection]) -> void private @@ -20,22 +28,22 @@ def on_resolver_connection: (Connection) -> void def on_resolver_error: (Connection, StandardError) -> void - def on_resolver_close: (resolver) -> void + def on_resolver_close: (Resolver::Resolver) -> void def register_connection: (Connection) -> void def unregister_connection: (Connection) -> void - def select_connection: (resolver | Connection connection) -> void + def select_connection: (Resolver::Resolver | Connection connection) -> void - def deselect_connection: (resolver | Connection connection) -> void + def deselect_connection: (Resolver::Resolver | Connection connection) -> void - def coalesce_connections: (Connection, Connection) -> void + def coalesce_connections: (Connection coalescable, Connection coalescing) -> void - def next_timeout: () -> Numeric? + def next_timeout: () -> (Integer | Float | nil) - def find_resolver_for: (Connection) -> resolver + def find_resolver_for: (Connection) { (Resolver::Resolver resolver) -> void } -> resolver_manager end end