-
-
Notifications
You must be signed in to change notification settings - Fork 31.8k
GH-90908: Document asyncio.TaskGroup #94359
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
7fbc914
to
4747a9a
Compare
It would be nice to mention this in 3.11 Whatsnews under improved modules. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I still have to add a section explaining how the waiting actually happens, using cancellations, and the various cases.
That's funny. I was looking for TaskGroup in the doc, and I was surprised that it was not documented at all. When I looked for the PR which added TaskGroup, I found this PR which adds documentation, PR created 16 hours ago :-) Great! |
@CAM-Gerlach This is ready for you. I'm also undrafting it. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks pretty good to my relatively uneducated eye, with just a handful of minor textual/syntax suggestions. A few of the sections got a bit dense at times, but I was able to get the gist of them (despite being a rank beginner) at least after a re-read or two and without much context, and I'm not sure how to explain them more simply.
One high-level thing to consider: Perhaps consider moving the class definition closer to the top of the section, after the introduction/summary line but before the example? I'm not super solid on this, but it feels somewhat out of place at the end (especially with the example being introduced before it), and as a side effect it means that the link from What's New puts the reader at the end of the relevant section rather than the beginning. But I don't feel too strongly about it.
Co-authored-by: CAM Gerlach <CAM.Gerlach@Gerlach.CAM>
Also remove a redundant versionchanged directive.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for taking care of this, Guido. LGTM.
Thanks @gvanrossum for the PR, and @ambv for merging it 🌮🎉.. I'm working now to backport this PR to: 3.11. |
Co-authored-by: CAM Gerlach <CAM.Gerlach@Gerlach.CAM> (cherry picked from commit b6ec6d4) Co-authored-by: Guido van Rossum <guido@python.org>
GH-94456 is a backport of this pull request to the 3.11 branch. |
Thanks for the reviews and merging! |
Co-authored-by: CAM Gerlach <CAM.Gerlach@Gerlach.CAM>
(Does this need a blurb?)