[issue46843] PersistentTaskGroup API

Guido van Rossum report at bugs.python.org
Thu Feb 24 11:45:33 EST 2022


Guido van Rossum <guido at python.org> added the comment:

Could you just have a global task group that owns these long-running tasks? It could be embedded in a "toplevel" task that is created using asyncio.create_task() (which won't be deprecated). To shut down all long-running tasks at the end, just cancel that toplevel task.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue46843>
_______________________________________


More information about the Python-bugs-list mailing list