Skip to content

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