[issue46843] PersistentTaskGroup API

Joongi Kim report at bugs.python.org
Mon Mar 7 00:40:00 EST 2022


Joongi Kim <me at daybreaker.info> added the comment:

I have released the new version of aiotools with rewritten TaskGroup and PersistentTaskGroup.

https://aiotools.readthedocs.io/en/latest/aiotools.taskgroup.html

aiotools.TaskGroup has small additions to asyncio.TaskGroup: a naming API and `current_taskgroup` context variable.

aiotools.PersistentTaskGroup is what I've described here, highlighting both async-with usage and long-lived object usage and `all_ptaskgroups()` classmethod for the monitoring purpose except the two-phase graceful shutdown (future TODO).

----------

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


More information about the Python-bugs-list mailing list