Skip to content

Replace 3.7 create_task with 3.5.1 ensure_future

Pablo Marcos Oltra requested to merge pamarcos/cerbero:ensure_future into master

create_task is only available in 3.7, and in 3.8 the API changes. So, we'd rather use the ensure_future since it does exactly the same even though the docs say it may be less readable: https://docs.python.org/3/library/asyncio-task.html#asyncio.create_task

Merge request reports