From 35823fd9d92f1bd35998562e879e6fcbca6cf2dc Mon Sep 17 00:00:00 2001 From: Hrvoje Niksic Date: Sun, 30 Sep 2018 10:40:36 +0200 Subject: [PATCH 1/2] bpo-34476: Document that asyncio.sleep() always suspends. --- Doc/library/asyncio-task.rst | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Doc/library/asyncio-task.rst b/Doc/library/asyncio-task.rst index d7102b807b60c5..cea792a1704473 100644 --- a/Doc/library/asyncio-task.rst +++ b/Doc/library/asyncio-task.rst @@ -276,6 +276,9 @@ Sleeping If *result* is provided, it is returned to the caller when the coroutine completes. + ``sleep()` always suspends the current task, allowing other tasks + to run. + The *loop* argument is deprecated and scheduled for removal in Python 3.10. From 4201a113ab4e6088b799cfaf9bf92805aa567559 Mon Sep 17 00:00:00 2001 From: Andrew Svetlov Date: Mon, 1 Oct 2018 12:56:42 +0300 Subject: [PATCH 2/2] Update asyncio-task.rst --- Doc/library/asyncio-task.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/library/asyncio-task.rst b/Doc/library/asyncio-task.rst index cea792a1704473..ffeeb2d3bbb102 100644 --- a/Doc/library/asyncio-task.rst +++ b/Doc/library/asyncio-task.rst @@ -276,7 +276,7 @@ Sleeping If *result* is provided, it is returned to the caller when the coroutine completes. - ``sleep()` always suspends the current task, allowing other tasks + ``sleep()`` always suspends the current task, allowing other tasks to run. The *loop* argument is deprecated and scheduled for removal