Explain the 'result' argument in asyncio.sleep
This commit is contained in:
parent
34e4628453
commit
2d26af82c1
|
@ -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…
Reference in New Issue