From cd602b8af2d14ff686261eeb18b80f718bb16550 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Hrvoje=20Nik=C5=A1i=C4=87?= Date: Mon, 1 Oct 2018 12:09:38 +0200 Subject: [PATCH] bpo-34476: Document that asyncio.sleep() always suspends. (#9643) --- 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 d7102b807b..ffeeb2d3bb 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. -- 2.40.0