MCPcopy
hub / github.com/nonebot/nonebot2 / close

Method close

nonebot/drivers/httpx.py:200–205  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

198
199 @override
200 async def close(self) -> None:
201 try:
202 if self._client is not None:
203 await self._client.aclose()
204 finally:
205 self._client = None
206
207
208class Mixin(HTTPClientMixin):

Callers 2

test_websocket_serverFunction · 0.45
_handle_wsFunction · 0.45

Calls

no outgoing calls

Tested by 2

test_websocket_serverFunction · 0.36
_handle_wsFunction · 0.36