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
[websocket] use background tasks instead of cleanup function (#100)
Why
===
* The cleanup function added a burden on the caller to make sure the
tasks were awaited.
* Instead, follow the advice of
https://docs.python.org/3/library/asyncio-task.html#asyncio.create_task
and store them in the background properly
What changed
===
* Revert cleanup commit
* Add background websocket task storage
Test plan
===
* Ran a pytest, and didn't see "Pending task destroyed" exceptions
0 commit comments