classification
Title: Add a Barrier object in asyncio lib
Type: enhancement Stage: patch review
Components: asyncio Versions: Python 3.11, Python 3.10, Python 3.9, Python 3.8, Python 3.7, Python 3.6
process
Status: open Resolution:
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 2021-06-24 06:25 by yduprat.

Pull Requests
URL Status Linked Edit
PR 24903 open python-dev, 2021-03-17 13:55
Messages (3)
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 ?
History
Date User Action Args
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