8000 Fix a code snippet typo in asyncio docs (GH-108427) · miss-islington/cpython@f23d77f · GitHub
[go: up one dir, main page]

Skip to content

Commit f23d77f

Browse files
Dumengmiss-islington
authored andcommitted
Fix a code snippet typo in asyncio docs (pythonGH-108427)
(cherry picked from commit 7f31676) Co-authored-by: A <5249513+Dumeng@users.noreply.github.com>
1 parent 38578dd commit f23d77f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Doc/library/asyncio-task.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -589,7 +589,7 @@ Shielding From Cancellation
589589

590590
is equivalent to::
591591

592-
res = await something()
592+
res = await shield(something())
593593

594594
*except* that if the coroutine containing it is cancelled, the
595595
Task running in ``something()`` is not cancelled. From the point

0 commit comments

Comments
 (0)
0