]> granicus.if.org Git - python/commitdiff
bpo-34476: Document that asyncio.sleep() always suspends. (#9643)
authorHrvoje Nikšić <hniksic@gmail.com>
Mon, 1 Oct 2018 10:09:38 +0000 (12:09 +0200)
committerAndrew Svetlov <andrew.svetlov@gmail.com>
Mon, 1 Oct 2018 10:09:38 +0000 (13:09 +0300)
Doc/library/asyncio-task.rst

index d7102b807b60c57d8736a696b176819299706c3c..ffeeb2d3bbb1029326f6c1898553e2ab6a6187eb 100644 (file)
@@ -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.