Skip to content

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

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

YvesDup wants to merge 6 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
@YvesDup
YvesDup marked this pull request as ready for review November 3, 2026 13:28
@YvesDup
YvesDup requested review from 1st1 and asvetlov as code owners November 3, 2026 13:28
@asvetlov

asvetlov commented Nov 3, 2026

Copy link
Copy Markdown
Contributor

The idea looks good. Please give me some time for careful review.

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.

2 participants