[Python-checkins] bpo-34476: Document that asyncio.sleep() always suspends. (#9643)

Andrew Svetlov webhook-mailer at python.org
Mon Oct 1 06:09:42 EDT 2018

commit: cd602b8af2d14ff686261eeb18b80f718bb16550
branch: master
author: Hrvoje Nikšić <hniksic at gmail.com>
committer: Andrew Svetlov <andrew.svetlov at gmail.com>
date: 2018-10-01T13:09:38+03:00

bpo-34476: Document that asyncio.sleep() always suspends. (#9643)

M Doc/library/asyncio-task.rst

diff --git a/Doc/library/asyncio-task.rst b/Doc/library/asyncio-task.rst
index d7102b807b60..ffeeb2d3bbb1 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.

More information about the Python-checkins mailing list