8000 [3.11] Fix a code snippet typo in asyncio docs (GH-108427) (#111244) · python/cpython@e35393f · GitHub
[go: up one dir, main page]

Skip to content

Commit e35393f

Browse files
[3.11] Fix a code snippet typo in asyncio docs (GH-108427) (#111244)
Co-authored-by: A <5249513+Dumeng@users.noreply.github.com>
1 parent bf41dcd co
D9DD
mmit e35393f

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
@@ -539,7 +539,7 @@ Shielding From Cancellation
539539

540540
is equivalent to::
541541

542-
res = await something()
542+
res = await shield(something())
543543

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

0 commit comments

Comments
 (0)
0