You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It can be easily implemented into the official code for easier use of the Client class, without the need to close after using it (also making it more organized):
asyncdefmain():
asyncwithcoc.Client() asclient:
# do stuff...if__name__=="__main__":
asyncio.run(main())
versus:
asyncdefmain():
client=coc.Client():
# do stuff...client.close()
if__name__=="__main__":
asyncio.run(main())
The text was updated successfully, but these errors were encountered:
This simple workaround is already enough to work with asynchronous context managers:
It can be easily implemented into the official code for easier use of the Client class, without the need to close after using it (also making it more organized):
versus:
The text was updated successfully, but these errors were encountered: