MCPcopy Create free account
hub / github.com/anomalyco/opencode-sdk-python / AsyncHttpxClientWrapper

Class AsyncHttpxClientWrapper

src/opencode_ai/_base_client.py:1336–1345  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1334
1335
1336class AsyncHttpxClientWrapper(DefaultAsyncHttpxClient):
1337 def __del__(self) -> None:
1338 if self.is_closed:
1339 return
1340
1341 try:
1342 # TODO(someday): support non asyncio runtimes here
1343 asyncio.get_running_loop().create_task(self.aclose())
1344 except Exception:
1345 pass
1346
1347
1348class AsyncAPIClient(BaseClient[httpx.AsyncClient, AsyncStream[Any]]):

Callers 1

__init__Method · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected