Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
network: ensure we pass tasks to asyncio.wait
In Python < 3.11, when passing a coroutine to asyncio.wait, it would automatically be scheduled as a task. This isn't the case anymore with Python 3.11. Now passing coroutines to asyncio.wait fails with: TypeError: Passing coroutines is forbidden, use tasks explicitly. Let's ensure we schedule the coroutines as tasks before passing them on to asyncio.wait. Signed-off-by: Olivier Gayot <[email protected]>
- Loading branch information