mirror of
https://github.com/RGBCube/GitHubWrapper
synced 2025-05-17 22:45:08 +00:00
Add close method
This commit is contained in:
parent
ff98977edb
commit
33309288a2
2 changed files with 7 additions and 2 deletions
|
@ -372,7 +372,10 @@ class GHClient:
|
|||
""":class:`float`: Returns the latency of the client."""
|
||||
return await self.http.latency()
|
||||
|
||||
async def close(self) -> None:
|
||||
"""Close the session."""
|
||||
await self.http.session.close()
|
||||
|
||||
|
||||
class Client(GHClient):
|
||||
pass
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue