mirror of
https://github.com/AdaCore/cpython.git
synced 2026-02-12 12:57:15 -08:00
bpo-34476: Document that asyncio.sleep() always suspends. (GH-9643) (#9654)
(cherry picked from commit cd602b8af2)
Co-authored-by: Hrvoje Nikšić <hniksic@gmail.com>
This commit is contained in:
committed by
Andrew Svetlov
parent
214c0b3d15
commit
655608a111
@@ -270,6 +270,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.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user