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

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

Open
patrick91 wants to merge 2 commits intoopentracing:masterfrom
patrick91:patch-1
Open

[asyncio] Fix get current task on Python 3.9#135
patrick91 wants to merge 2 commits intoopentracing:masterfrom
patrick91:patch-1

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