Skip to content

Commit cd602b8

Browse files
hniksicasvetlov
authored andcommitted
bpo-34476: Document that asyncio.sleep() always suspends. (#9643)
1 parent e972c13 commit cd602b8

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
@@ -276,6 +276,9 @@ Sleeping
276276
If *result* is provided, it is returned to the caller
277277
when the coroutine completes.
278278

279+
``sleep()`` always suspends the current task, allowing other tasks
280+
to run.
281+
279282
The *loop* argument is deprecated and scheduled for removal
280283
in Python 3.10.
281284

0 commit comments

Comments
 (0)