Skip to content

Conversation

@Tinche
Copy link
Contributor

@TincheTinche 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

@gvanrossumgvanrossum 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

@kumaraditya303kumaraditya303 left a comment

Choose a reason for hiding this comment

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

LGTM

@gvanrossumgvanrossum merged commit edbee56 into python:mainFeb 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 freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants

@Tinche@gvanrossum@kumaraditya303@the-knights-who-say-ni@bedevere-bot