BPO | [43352](https://bugs.python.org/issue43352) --- | :--- Nosy | @asvetlov, @1st1, @eamanu, @YvesDup PRs | python/cpython#24903 *Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.* Show more details GitHub fields: ```python assignee = None closed_at = created_at = labels = ['3.11', 'type-feature', 'expert-asyncio'] title = 'Add a Barrier object in asyncio lib' updated_at = user = 'https://github.com/YvesDup' ``` bugs.python.org fields: ```python activity = actor = 'asvetlov' assignee = 'none' closed = True closed_date = closer = 'asvetlov' components = ['asyncio'] creation = creator = 'yduprat' dependencies = [] files = [] hgrepos = [] issue_num = 43352 keywords = ['patch'] message_count = 4.0 messages = ['387855', '392282', '396453', '416019'] nosy_count = 5.0 nosy_names = ['asvetlov', 'python-dev', 'yselivanov', 'eamanu', 'yduprat'] pr_nums = ['24903'] priority = 'normal' resolution = 'fixed' stage = 'resolved' status = 'closed' superseder = None type = 'enhancement' url = 'https://bugs.python.org/issue43352' versions = ['Python 3.11'] ```
Activity
YvesDup commentedon Mar 1, 2021
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/
YvesDup commentedon Apr 29, 2021
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 ?
YvesDup commentedon Jun 24, 2021
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 ?
asvetlov commentedon Mar 25, 2022
New changeset d03acd7 by Duprat in branch 'main':
bpo-43352: Add a Barrier object in asyncio lib (GH-24903)
d03acd7
Update 3.11.rst