mirror of
https://github.com/python/cpython.git
synced 2025-11-20 02:50:14 +00:00
bpo-34476: Document that asyncio.sleep() always suspends. (#9643)
This commit is contained in:
parent
e972c13624
commit
cd602b8af2
1 changed files with 3 additions and 0 deletions
|
|
@ -276,6 +276,9 @@ Sleeping
|
||||||
If *result* is provided, it is returned to the caller
|
If *result* is provided, it is returned to the caller
|
||||||
when the coroutine completes.
|
when the coroutine completes.
|
||||||
|
|
||||||
|
``sleep()`` always suspends the current task, allowing other tasks
|
||||||
|
to run.
|
||||||
|
|
||||||
The *loop* argument is deprecated and scheduled for removal
|
The *loop* argument is deprecated and scheduled for removal
|
||||||
in Python 3.10.
|
in Python 3.10.
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue