diff options
author | Guido van Rossum <guido@python.org> | 2022-06-30 17:10:46 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-30 17:10:46 (GMT) |
commit | 594c3699492bfb007650538726d953cbed55de04 (patch) | |
tree | 0c08bef359427752e98c566d436e5d3208b1b490 /Misc | |
parent | 4261b6bffc0b8bb5c6d4d80578a81b7520f4aefc (diff) | |
download | cpython-594c3699492bfb007650538726d953cbed55de04.zip cpython-594c3699492bfb007650538726d953cbed55de04.tar.gz cpython-594c3699492bfb007650538726d953cbed55de04.tar.bz2 |
GH-94398: TaskGroup: Fail create_task() during shutdown (GH-94400)
Once the task group is shutting down, it should not be possible to create a new task.
Here "shutting down" means `self._aborting` is set, indicating that at least one task
has failed and we have cancelled all others.
Co-authored-by: Ćukasz Langa <lukasz@langa.pl>
Diffstat (limited to 'Misc')
-rw-r--r-- | Misc/NEWS.d/next/Library/2022-06-29-04-42-56.gh-issue-94398.YOq_bJ.rst | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2022-06-29-04-42-56.gh-issue-94398.YOq_bJ.rst b/Misc/NEWS.d/next/Library/2022-06-29-04-42-56.gh-issue-94398.YOq_bJ.rst new file mode 100644 index 0000000..c6e7e96 --- /dev/null +++ b/Misc/NEWS.d/next/Library/2022-06-29-04-42-56.gh-issue-94398.YOq_bJ.rst @@ -0,0 +1 @@ +Once a :class:`asyncio.TaskGroup` has started shutting down (i.e., at least one task has failed and the task group has started cancelling the remaining tasks), it should not be possible to add new tasks to the task group. |