aiochan
aiochan copied to clipboard
python3.10 support
There have been a couple of removals of deprecated parameters/methods in python 3.10 so aiochan would no longer work.
In this MR, I fixed the deprecated loop parameter on Event
and Semaphore
and switched to the use of asyncio.all_tasks
from asyncio.Task.all_tasks
.
The call to .all_tasks
was not yet covered by any tests, so I added one.
I also switched the CI to github jobs, because I have no experience with travis CI and I didn't know how to set it up. If this change is undesirable, feel free to remove it from this PR.