mirror of
https://github.com/python/cpython.git
synced 2025-10-22 06:32:43 +00:00
Explain the 'result' argument in asyncio.sleep
This commit is contained in:
parent
34e4628453
commit
2d26af82c1
1 changed files with 2 additions and 1 deletions
|
@ -419,7 +419,8 @@ Task functions
|
|||
.. function:: sleep(delay, result=None, \*, loop=None)
|
||||
|
||||
Create a :ref:`coroutine object <coroutine>` that completes after a given
|
||||
time (in seconds).
|
||||
time (in seconds). If *result* is provided, it is produced to the caller
|
||||
when the coroutine completes.
|
||||
|
||||
.. function:: shield(arg, \*, loop=None)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue