diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2014-01-16 18:30:21 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2014-01-16 18:30:21 (GMT) |
commit | 59759ff23420868b1b45de37f6ad6dc7de81778a (patch) | |
tree | af0ce1195c186c6e56d45002402e378470d5498d /Doc/library/asyncio-sync.rst | |
parent | db39a0da0ca6839177f00be9f38446fa717a4958 (diff) | |
download | cpython-59759ff23420868b1b45de37f6ad6dc7de81778a.zip cpython-59759ff23420868b1b45de37f6ad6dc7de81778a.tar.gz cpython-59759ff23420868b1b45de37f6ad6dc7de81778a.tar.bz2 |
asyncio doc: replace "coroutine" with "coroutine object" or "coroutine function"
Diffstat (limited to 'Doc/library/asyncio-sync.rst')
-rw-r--r-- | Doc/library/asyncio-sync.rst | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/Doc/library/asyncio-sync.rst b/Doc/library/asyncio-sync.rst index 3ea49b3..96ea012 100644 --- a/Doc/library/asyncio-sync.rst +++ b/Doc/library/asyncio-sync.rst @@ -70,7 +70,7 @@ Locks This method blocks until the lock is unlocked, then sets it to locked and returns ``True``. - This method returns a :ref:`coroutine <coroutine>`. + This method returns a :ref:`coroutine object <coroutine>`. .. method:: release() @@ -118,7 +118,7 @@ Locks Otherwise, block until another coroutine calls :meth:`set` to set the flag to true, then return ``True``. - This method returns a :ref:`coroutine <coroutine>`. + This method returns a :ref:`coroutine object <coroutine>`. .. class:: Condition(\*, loop=None) @@ -166,7 +166,7 @@ Locks condition variable in another coroutine. Once awakened, it re-acquires the lock and returns ``True``. - This method returns a :ref:`coroutine <coroutine>`. + This method returns a :ref:`coroutine object <coroutine>`. .. method:: wait_for(predicate) @@ -175,7 +175,7 @@ Locks 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 <coroutine>`. + This method returns a :ref:`coroutine object <coroutine>`. Semaphores @@ -205,7 +205,7 @@ Semaphores until some other coroutine has called :meth:`release` to make it larger than ``0``, and then return ``True``. - This method returns a :ref:`coroutine <coroutine>`. + This method returns a :ref:`coroutine object <coroutine>`. .. method:: locked() @@ -261,7 +261,7 @@ Queues If you yield from :meth:`get()`, wait until a item is available. - This method returns a :ref:`coroutine <coroutine>`. + This method returns a :ref:`coroutine object <coroutine>`. .. method:: get_nowait() @@ -277,7 +277,7 @@ Queues If you yield from ``put()``, wait until a free slot is available before adding item. - This method returns a :ref:`coroutine <coroutine>`. + This method returns a :ref:`coroutine object <coroutine>`. .. method:: put_nowait(item) @@ -323,7 +323,7 @@ Queues it is complete. When the count of unfinished tasks drops to zero, :meth:`join` unblocks. - This method returns a :ref:`coroutine <coroutine>`. + This method returns a :ref:`coroutine object <coroutine>`. .. method:: task_done() |