From 2d26af82c1639d4aa709ed68f68673e7bd7e1bf4 Mon Sep 17 00:00:00 2001 From: Eli Bendersky Date: Mon, 20 Jan 2014 06:59:23 -0800 Subject: Explain the 'result' argument in asyncio.sleep --- Doc/library/asyncio-task.rst | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 ` 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) -- cgit v0.12