[issue46771] Add some form of cancel scopes
Guido van Rossum
report at bugs.python.org
Wed Feb 16 13:19:57 EST 2022
Guido van Rossum <guido at python.org> added the comment:
Sure, we should create the best possible solution.
We have no CI in the stdlib that checks type annotations, so those should probably be moved to a stub file in typeshed. (Ditto for asyncio taskgroups.py.)
Using the new .cancelling()/.uncancel() API added to Task you might be able to avoid hacks using the cancel msg (check how it's used in the new TaskGroup).
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue46771>
_______________________________________
More information about the Python-bugs-list
mailing list