This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Add a Barrier object in asyncio lib
Type: enhancement Stage: resolved
Components: asyncio Versions: Python 3.11
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: asvetlov, eamanu, python-dev, yduprat, yselivanov
Priority: normal Keywords: patch

Created on 2021-03-01 11:39 by yduprat, last changed 2022-04-11 14:59 by admin. This issue is now closed.

Pull Requests
URL Status Linked Edit
PR 24903 merged python-dev, 2021-03-17 13:55
Messages (4)
msg387855 - (view) Author: Yves Duprat (yduprat) * Date: 2021-03-01 11:39
Add a synchronized primitive Barrier in asyncio, in order to be consistent with them we have for threading.

Barrier object will have a similar design from that of threading lib.
(May be we have to think about a backport ?)


Initial discussion started here: https://mail.python.org/archives/list/python-ideas@python.org/thread/IAFAH7PWMUDUTLXYLNSXES7VMDQ26A3W/
msg392282 - (view) Author: Yves Duprat (yduprat) * Date: 2021-04-29 06:29
An update was submitted on PR.

Modified python files are:

   file lib/asyncio/locks.py
   file lib/test/test_asyncio/test_locks.py

And related documentation files

   file Doc/library/asyncio-api-index.rst
   file Doc/library/asyncio-sync.rst

Please, could you have a look ?
msg396453 - (view) Author: Yves Duprat (yduprat) * Date: 2021-06-24 06:25
This last version includes the propositions, remarks from @asveltov and @eamanu

This PR is always stuck, so could you please approve the 3 running workflows ?
msg416019 - (view) Author: Andrew Svetlov (asvetlov) * (Python committer) Date: 2022-03-25 22:01
New changeset d03acd7270d66ddb8e987f9743405147ecc15087 by Duprat in branch 'main':
bpo-43352: Add a Barrier object in asyncio lib (GH-24903)
https://github.com/python/cpython/commit/d03acd7270d66ddb8e987f9743405147ecc15087
History
Date User Action Args
2022-04-11 14:59:42adminsetgithub: 87518
2022-03-25 22:02:23asvetlovsetstatus: open -> closed
stage: patch review -> resolved
resolution: fixed
versions: - Python 3.6, Python 3.7, Python 3.8, Python 3.9, Python 3.10
2022-03-25 22:01:24asvetlovsetmessages: + msg416019
2021-06-24 06:25:42ydupratsetstatus: pending -> open

messages: + msg396453
2021-04-29 06:29:17ydupratsetstatus: open -> pending

messages: + msg392282
versions: + Python 3.11
2021-03-17 13:55:18python-devsetkeywords: + patch
nosy: + python-dev

pull_requests: + pull_request23666
stage: patch review
2021-03-05 19:34:04eamanusetnosy: + eamanu
2021-03-01 11:39:56ydupratcreate