Closed
Description
Currently the current task of a loop in stored in a global dict mapping loops to their corresponding current tasks.
cpython/Modules/_asynciomodule.c
Lines 100 to 104 in 8d16919
However this will perform poorly in free threading build as such I propose to store it in on the loop itself.
See https://discuss.python.org/t/store-current-task-on-the-loop/75926
Linked PRs
Metadata
Metadata
Assignees
Projects
Status
Done