summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorEli Bendersky <eliben@gmail.com>2014-01-20 14:59:23 (GMT)
committerEli Bendersky <eliben@gmail.com>2014-01-20 14:59:23 (GMT)
commit2d26af82c1639d4aa709ed68f68673e7bd7e1bf4 (patch)
tree722af31319ecc17142b7f877fa71e468c36387ca /Doc
parent34e4628453a01330a41c0d0baddc1408a38e5de4 (diff)
downloadcpython-2d26af82c1639d4aa709ed68f68673e7bd7e1bf4.zip
cpython-2d26af82c1639d4aa709ed68f68673e7bd7e1bf4.tar.gz
cpython-2d26af82c1639d4aa709ed68f68673e7bd7e1bf4.tar.bz2
Explain the 'result' argument in asyncio.sleep
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/asyncio-task.rst3
1 files changed, 2 insertions, 1 deletions
diff --git a/Doc/library/asyncio-task.rst b/Doc/library/asyncio-task.rst
index 43b5060..e4abacd 100644
--- a/Doc/library/asyncio-task.rst
+++ b/Doc/library/asyncio-task.rst
@@ -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)