mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
asyncio doc: replace "coroutine" with "coroutine object" or "coroutine function"
This commit is contained in:
parent
db39a0da0c
commit
59759ff234
4 changed files with 41 additions and 39 deletions
|
@ -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()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue