Skip to content

gh-155233: Fix asyncio.Barrier reusing a cancelled task's index (alternative to GH-155235) - #158957

Draft
YvesDup wants to merge 3 commits into
python:mainfrom
YvesDup:asyncio.barrier-reuse-index-when-task-cancel
Draft

YvesDup wants to merge 3 commits into
python:mainfrom
YvesDup:asyncio.barrier-reuse-index-when-task-cancel

Conversation

@YvesDup

@YvesDup YvesDup commented Oct 7, 2026 •

Copy link
Copy Markdown
Contributor

The returned index counter is now calculated on demand during the draining phasis

See issue for more details

- add a private ``_index`` attr
- add a test

Co-authored-by: Sreehari Annam
@YvesDup YvesDup changed the title gh-155233: Fix asyncio.Barrier reusing a cancelled task's index (alternative to GH-140799) gh-155233: Fix asyncio.Barrier reusing a cancelled task's index (alternative to GH-155235) Oct 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant