Skip to content

Commit 655608a

Browse files
miss-islingtonhniksic
authored andcommitted
bpo-34476: Document that asyncio.sleep() always suspends. (GH-9643) (#9654)
(cherry picked from commit cd602b8) Co-authored-by: Hrvoje Nikšić <hniksic@gmail.com>
1 parent 214c0b3 commit 655608a

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

Doc/library/asyncio-task.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -270,6 +270,9 @@ Sleeping
270270
If *result* is provided, it is returned to the caller
271271
when the coroutine completes.
272272

273+
``sleep()`` always suspends the current task, allowing other tasks
274+
to run.
275+
273276
The *loop* argument is deprecated and scheduled for removal
274277
in Python 3.10.
275278

0 commit comments

Comments
 (0)