Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
modify parameters passed to asyncio.wait to avoid deprecation warning. (
#160) Remove asyncio.wait deprecation warning by only passing tasks to it. In the master scheduler _do_task method, a coroutine is passed to asyncio.wait. This is deprecated behaviour. I noticed this while working on #153: ``` File "/workspace/tickit/src/tickit/core/management/schedulers/master.py", line 102, in _do_tick which, _ = await asyncio.wait( File "/usr/local/lib/python3.10/asyncio/tasks.py", line 377, in wait warnings.warn("The explicit passing of coroutine objects to " DeprecationWarning: The explicit passing of coroutine objects to asyncio.wait() is deprecated since Python 3.8, and scheduled for removal in Python 3.11. ```
- Loading branch information