MCPcopy
hub / github.com/anthropics/anthropic-sdk-python / AsyncHttpxClientWrapper

Class AsyncHttpxClientWrapper

src/anthropic/_base_client.py:1708–1717  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1706
1707
1708class AsyncHttpxClientWrapper(DefaultAsyncHttpxClient):
1709 def __del__(self) -> None:
1710 if self.is_closed:
1711 return
1712
1713 try:
1714 # TODO(someday): support non asyncio runtimes here
1715 asyncio.get_running_loop().create_task(self.aclose())
1716 except Exception:
1717 pass
1718
1719
1720class AsyncAPIClient(BaseClient[httpx.AsyncClient, AsyncStream[Any]]):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected