mirror of https://github.com/python/cpython
Fix a code snippet typo in asyncio docs (#108427)
This commit is contained in:
parent
b7808820b1
commit
7f31676340
|
@ -592,7 +592,7 @@ Shielding From Cancellation
|
|||
|
||||
is equivalent to::
|
||||
|
||||
res = await something()
|
||||
res = await shield(something())
|
||||
|
||||
*except* that if the coroutine containing it is cancelled, the
|
||||
Task running in ``something()`` is not cancelled. From the point
|
||||
|
|
Loading…
Reference in New Issue