Skip to content
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

bpo-46752: Taskgroup tweaks #31559

Merged
merged 1 commit into from
Feb 26, 2022
Merged

bpo-46752: Taskgroup tweaks #31559

merged 1 commit into from
Feb 26, 2022

Conversation

Tinche
Copy link
Contributor

@Tinche Tinche commented Feb 25, 2022

Here are some taskgroup tweaks, mostly from the cancellation changes and @gvanrossum 's comments in #31513 (comment).

  • check the return value of .uncancel() to decide whether to propagate the CancelledError
  • propagate the CancelledError exception properly in some cases
  • _abort() only once, instead of potentially multiple times (unsure if it could've happened in reality)
  • renamed a couple of tests that I worked on to be a little more descriptive

https://bugs.python.org/issue46752

Copy link
Member

@gvanrossum gvanrossum left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Unless @asvetlov or @1st1 peeps I'll merge this in a day or so.

Copy link
Contributor

@kumaraditya303 kumaraditya303 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@gvanrossum gvanrossum merged commit edbee56 into python:main Feb 26, 2022
asvetlov pushed a commit that referenced this pull request Feb 26, 2022
Now uses .cancel()/.uncancel(), for even fewer broken edge cases.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants