class Anthropic::Internal::Transport::PooledNetRequester

def with_pool(url, deadline:, &blk)

Other tags:
    Yieldparam: -

Raises:
  • (Timeout::Error) -

Parameters:
  • blk (Proc) --
  • deadline (Float) --
  • url (URI::Generic) --

Other tags:
    Api: - private
def with_pool(url, deadline:, &blk)
 = Anthropic::Internal::Util.uri_origin(url)
t = deadline - Anthropic::Internal::Util.monotonic_secs

ex.synchronize do
ools[origin] ||= ConnectionPool.new(size: @size) do
self.class.connect(url)
d
ith(timeout: timeout, &blk)