Skip to content
This repository has been archived by the owner on May 23, 2023. It is now read-only.

[asyncio] Fix get current task on Python 3.9 #135

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

patrick91
Copy link

Python 3.9 has removed asyncio.Task.current_task, from the docs:

The asyncio.Task.current_task() and asyncio.Task.all_tasks() have been removed. They were deprecated since Python 3.7 and you can use asyncio.current_task() and asyncio.all_tasks() instead. (Contributed by Rémi Lapeyre in bpo-40967)

https://docs.python.org/3.9/whatsnew/3.9.html?highlight=current_task

Python 3.9 has removed `asyncio.Task.current_task`, from the docs:

> The asyncio.Task.current_task() and asyncio.Task.all_tasks() have been removed. They were deprecated since Python 3.7 and you can use asyncio.current_task() and asyncio.all_tasks() instead. (Contributed by Rémi Lapeyre in bpo-40967)

https://docs.python.org/3.9/whatsnew/3.9.html?highlight=current_task
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant