Commit 2d26af82 authored by Eli Bendersky's avatar Eli Bendersky

Explain the 'result' argument in asyncio.sleep

parent 34e46284
......@@ -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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment