sig/io/tcp.rbs in httpx-0.24.3 vs sig/io/tcp.rbs in httpx-0.24.4
- old
+ new
@@ -12,11 +12,12 @@
attr_reader interests: io_interests
alias host ip
- def initialize: (URI::Generic origin, Array[ipaddr]? addresses, options options) -> void
+ # TODO: lift when https://github.com/ruby/rbs/issues/1497 fixed
+ def initialize: (URI::Generic origin, Array[ipaddr]? addresses, options options) ?{ (self) -> void } -> void
def add_addresses: (Array[ipaddr] addrs) -> void
def to_io: () -> ::IO
@@ -36,9 +37,11 @@
def write: (Buffer buffer) -> Integer?
def close: () -> void
def connected?: () -> bool
+
+ def expired?: () -> boolish
def closed?: () -> bool
# :nocov:
def inspect: () -> ::String