summaryrefslogtreecommitdiffstats
path: root/Doc/library/asyncio-sync.rst
diff options
context:
space:
mode:
authorYury Selivanov <yselivanov@sprymix.com>2014-02-20 21:20:44 (GMT)
committerYury Selivanov <yselivanov@sprymix.com>2014-02-20 21:20:44 (GMT)
commit37f15bcfed4133f5ed79abf7e01eb052e2a60592 (patch)
tree3ab1df2928cc670427ea86b9b6d135a5f3187809 /Doc/library/asyncio-sync.rst
parent934c88588541141144ce4d013a4ac769c80d62ce (diff)
downloadcpython-37f15bcfed4133f5ed79abf7e01eb052e2a60592.zip
cpython-37f15bcfed4133f5ed79abf7e01eb052e2a60592.tar.gz
cpython-37f15bcfed4133f5ed79abf7e01eb052e2a60592.tar.bz2
asyncio.docs: Improve wordings; add a note to the Coroutines section. Issue #20706
Diffstat (limited to 'Doc/library/asyncio-sync.rst')
-rw-r--r--Doc/library/asyncio-sync.rst14
1 files changed, 7 insertions, 7 deletions
diff --git a/Doc/library/asyncio-sync.rst b/Doc/library/asyncio-sync.rst
index 19e49ff..de38131 100644
--- a/Doc/library/asyncio-sync.rst
+++ b/Doc/library/asyncio-sync.rst
@@ -124,7 +124,7 @@ Event
Otherwise, block until another coroutine calls :meth:`set` to set the
flag to true, then return ``True``.
- This method returns a :ref:`coroutine object <coroutine>`.
+ This method is a :ref:`coroutine <coroutine>`.
Condition
@@ -175,7 +175,7 @@ Condition
condition variable in another coroutine. Once awakened, it re-acquires
the lock and returns ``True``.
- This method returns a :ref:`coroutine object <coroutine>`.
+ This method is a :ref:`coroutine <coroutine>`.
.. method:: wait_for(predicate)
@@ -184,7 +184,7 @@ Condition
The predicate should be a callable which result will be interpreted as a
boolean value. The final predicate value is the return value.
- This method returns a :ref:`coroutine object <coroutine>`.
+ This method is a :ref:`coroutine <coroutine>`.
Semaphores
@@ -217,7 +217,7 @@ Semaphore
until some other coroutine has called :meth:`release` to make it larger
than ``0``, and then return ``True``.
- This method returns a :ref:`coroutine object <coroutine>`.
+ This method is a :ref:`coroutine <coroutine>`.
.. method:: locked()
@@ -279,7 +279,7 @@ Queue
If you yield from :meth:`get()`, wait until a item is available.
- This method returns a :ref:`coroutine object <coroutine>`.
+ This method is a :ref:`coroutine <coroutine>`.
.. method:: get_nowait()
@@ -295,7 +295,7 @@ Queue
If you yield from ``put()``, wait until a free slot is available before
adding item.
- This method returns a :ref:`coroutine object <coroutine>`.
+ This method is a :ref:`coroutine <coroutine>`.
.. method:: put_nowait(item)
@@ -350,7 +350,7 @@ JoinableQueue
it is complete. When the count of unfinished tasks drops to zero,
:meth:`join` unblocks.
- This method returns a :ref:`coroutine object <coroutine>`.
+ This method is a :ref:`coroutine <coroutine>`.
.. method:: task_done()