| 1706 | |
| 1707 | |
| 1708 | class 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 | |
| 1720 | class AsyncAPIClient(BaseClient[httpx.AsyncClient, AsyncStream[Any]]): |
nothing calls this directly
no outgoing calls
no test coverage detected