bpo-34476: Document that asyncio.sleep() always suspends. (#9643) · python/cpython@cd602b8

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 cd602b8

hniksicasvetlov

authored and

committed

bpo-34476: Document that asyncio.sleep() always suspends. (#9643)

1 parent e972c13 commit cd602b8

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

@@ -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)