Skip to content

Conversation

@duaneg
Copy link
Contributor

@duanegduaneg commented May 1, 2025

At present when cancelling the result of an :func:asncio.gather call, the last child is used to create the cancellation error. If that was not cancelled but another child was, its cancellation message and traceback will be lost.

Fix this by using the cancellation error from the first of the children to be cancelled, if any, falling back to the last child only if none have been.

At present when cancelling the result of an :func:`asncio.gather` call, the last child is used to create the cancellation error. If that was not cancelled but another child was, its cancellation message and traceback will be lost. Fix this by using the cancellation error from the first of the children to be cancelled, if any, falling back to the last child only if none have been.
@bedevere-app
Copy link

Most changes to Python require a NEWS entry. Add one using the blurb_it web app or the blurb command-line tool.

If this change has little impact on Python users, wait for a maintainer to apply the skip news label instead.

Sign up for freeto 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.

2 participants

@duaneg@ZeroIntensity