summaryrefslogtreecommitdiffstats
path: root/Doc/library/asyncio-sync.rst
diff options
context:
space:
mode:
Diffstat (limited to 'Doc/library/asyncio-sync.rst')
-rw-r--r--Doc/library/asyncio-sync.rst27
1 files changed, 27 insertions, 0 deletions
diff --git a/Doc/library/asyncio-sync.rst b/Doc/library/asyncio-sync.rst
index 96ea012..5ac9f34 100644
--- a/Doc/library/asyncio-sync.rst
+++ b/Doc/library/asyncio-sync.rst
@@ -7,6 +7,9 @@ Synchronization primitives
Locks
-----
+Lock
+^^^^
+
.. class:: Lock(\*, loop=None)
Primitive lock objects.
@@ -85,6 +88,9 @@ Locks
There is no return value.
+Event
+^^^^^
+
.. class:: Event(\*, loop=None)
An Event implementation, asynchronous equivalent to :class:`threading.Event`.
@@ -121,6 +127,9 @@ Locks
This method returns a :ref:`coroutine object <coroutine>`.
+Condition
+^^^^^^^^^
+
.. class:: Condition(\*, loop=None)
A Condition implementation, asynchronous equivalent to
@@ -181,6 +190,9 @@ Locks
Semaphores
----------
+Semaphore
+^^^^^^^^^
+
.. class:: Semaphore(value=1, \*, loop=None)
A Semaphore implementation.
@@ -218,6 +230,9 @@ Semaphores
larger than zero again, wake up that coroutine.
+BoundedSemaphore
+^^^^^^^^^^^^^^^^
+
.. class:: BoundedSemaphore(value=1, \*, loop=None)
A bounded semaphore implementation. Inherit from :class:`Semaphore`.
@@ -229,6 +244,9 @@ Semaphores
Queues
------
+Queue
+^^^^^
+
.. class:: Queue(maxsize=0, \*, loop=None)
A queue, useful for coordinating producer and consumer coroutines.
@@ -294,6 +312,9 @@ Queues
Number of items allowed in the queue.
+PriorityQueue
+^^^^^^^^^^^^^
+
.. class:: PriorityQueue
A subclass of :class:`Queue`; retrieves entries in priority order (lowest
@@ -302,12 +323,18 @@ Queues
Entries are typically tuples of the form: (priority number, data).
+LifoQueue
+^^^^^^^^^
+
.. class:: LifoQueue
A subclass of :class:`Queue` that retrieves most recently added entries
first.
+JoinableQueue
+^^^^^^^^^^^^^
+
.. class:: JoinableQueue
A subclass of :class:`Queue` with :meth:`task_done` and :meth:`join`