[issue46844] Context-based TaskGroup for legacy libraries

Joongi Kim report at bugs.python.org
Thu Feb 24 01:54:03 EST 2022


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

The main benefit is that any legacy code that I cannot modify can be upgraded to TaskGroup-based codes, which offers a better machinary for exception handling and propagation.

There may be different ways to visit this issue: allow replacing the task factory in asyncio at runtime.  Then I could just implement my own snippet to transfer the "ownership" of the task to a specific task group.

----------

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


More information about the Python-bugs-list mailing list