Commit d91e356e authored by Alexander Schrode's avatar Alexander Schrode Committed by oroulet

check_connection add docs

parent 2462bd86
...@@ -426,7 +426,8 @@ class Client: ...@@ -426,7 +426,8 @@ class Client:
return response return response
async def check_connection(self): async def check_connection(self):
# Check if a background task has finished and if a exception is thrown rethrow it with result # can be used to check if the client is still connected
# if not it throws the underlying exception
if self._renew_channel_task is not None: if self._renew_channel_task is not None:
if self._renew_channel_task.done(): if self._renew_channel_task.done():
await self._renew_channel_task await self._renew_channel_task
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment