[issue46752] Introduce task groups to asyncio and change task cancellation semantics
Guido van Rossum
report at bugs.python.org
Tue Feb 15 18:45:51 EST 2022
Guido van Rossum <guido at python.org> added the comment:
Remaining TODO list:
- Add a test showing the need for the .uncancel() call in __aexit__()
(currently on line 97). Dropping that line does not cause any tests
to fail.
- Ensure the taskgroup tests are run with the C and Python Task
implementations.
- Rename tests to have meaningful names.
- I have a few ideas for minor cleanups that I will do later.
- Documentation and What's New entry (in a separate PR, probably).
- Update the docs in a few places to de-prioritize asyncio.gather()
and steer people towards TaskGroups.
(We could also add something like Trio's cancel scopes, e.g. based on
Andrew Svetlov's async-timeout, which has a mature API.
But that should be a separate bpo issue.)
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue46752>
_______________________________________
More information about the Python-bugs-list
mailing list