[issue46844] Context-based TaskGroup for legacy libraries

Joongi Kim report at bugs.python.org
Thu Feb 24 08:08:05 EST 2022


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

Ok, let me be clear: Patching asyncio.create_task() to support this opt-in contextual task group binding is not an ultimate goal of this issue.  If it becomes possible to override/extend the task factory at runtime with any event loop implementation, then it's ok to implement this feature request as a 3rd-party library.  I also don't want to bloat the stdlib with version-specific branches, if there are alternative ways to achieve the same goal.  I just wanted to check out your opinons and potential alternative approaches to implement it.

----------

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


More information about the Python-bugs-list mailing list