summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorHrvoje Nikšić <hniksic@gmail.com>2018-10-01 10:09:38 (GMT)
committerAndrew Svetlov <andrew.svetlov@gmail.com>2018-10-01 10:09:38 (GMT)
commitcd602b8af2d14ff686261eeb18b80f718bb16550 (patch)
tree968a733a743d7c4fa8cd24f3df909c998f7b6353 /Doc
parente972c13624c32d0efdceb08ff83917fb6b488525 (diff)
downloadcpython-cd602b8af2d14ff686261eeb18b80f718bb16550.zip
cpython-cd602b8af2d14ff686261eeb18b80f718bb16550.tar.gz
cpython-cd602b8af2d14ff686261eeb18b80f718bb16550.tar.bz2
bpo-34476: Document that asyncio.sleep() always suspends. (#9643)
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/asyncio-task.rst3
1 files changed, 3 insertions, 0 deletions
diff --git a/Doc/library/asyncio-task.rst b/Doc/library/asyncio-task.rst
index d7102b8..ffeeb2d 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.