diff options
-rw-r--r-- | Doc/library/asyncio-task.rst | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Doc/library/asyncio-task.rst b/Doc/library/asyncio-task.rst index 43b506008c..e4abacd135 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) |