diff options
author | Duprat <yduprat@gmail.com> | 2022-03-25 22:01:21 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-25 22:01:21 (GMT) |
commit | d03acd7270d66ddb8e987f9743405147ecc15087 (patch) | |
tree | cffe25f0c26d55aef28c910dcf825747da99a6d4 /Doc/library/asyncio-api-index.rst | |
parent | 20e6e5636a06fe5e1472062918d0a302d82a71c3 (diff) | |
download | cpython-d03acd7270d66ddb8e987f9743405147ecc15087.zip cpython-d03acd7270d66ddb8e987f9743405147ecc15087.tar.gz cpython-d03acd7270d66ddb8e987f9743405147ecc15087.tar.bz2 |
bpo-43352: Add a Barrier object in asyncio lib (GH-24903)
Co-authored-by: Yury Selivanov <yury@edgedb.com>
Co-authored-by: Andrew Svetlov <andrew.svetlov@gmail.com>
Diffstat (limited to 'Doc/library/asyncio-api-index.rst')
-rw-r--r-- | Doc/library/asyncio-api-index.rst | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Doc/library/asyncio-api-index.rst b/Doc/library/asyncio-api-index.rst index 8bc7943..a4e38e4 100644 --- a/Doc/library/asyncio-api-index.rst +++ b/Doc/library/asyncio-api-index.rst @@ -186,11 +186,16 @@ Threading-like synchronization primitives that can be used in Tasks. * - :class:`BoundedSemaphore` - A bounded semaphore. + * - :class:`Barrier` + - A barrier object. + .. rubric:: Examples * :ref:`Using asyncio.Event <asyncio_example_sync_event>`. +* :ref:`Using asyncio.Barrier <asyncio_example_barrier>`. + * See also the documentation of asyncio :ref:`synchronization primitives <asyncio-sync>`. @@ -206,6 +211,9 @@ Exceptions * - :exc:`asyncio.CancelledError` - Raised when a Task is cancelled. See also :meth:`Task.cancel`. + * - :exc:`asyncio.BrokenBarrierError` + - Raised when a Barrier is broken. See also :meth:`Barrier.wait`. + .. rubric:: Examples |