bpo-34476: Document that asyncio.sleep() always suspends. (GH-9643) (… · python/cpython@655608a

Skip to content

Navigation Menu

Sign in

Appearance settings

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

Commit 655608a

miss-islingtonhniksic

authored and

committed

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

File tree

1 file changed

+

3

-

0

lines changed

1 file changed

+

3

-

0

lines changed

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)