mirror of https://github.com/python/cpython.git
[3.11] Revert "Fix a code snippet typo in asyncio docs (GH-108427)" (GH-111271) (GH-111273)
Revert "Fix a code snippet typo in asyncio docs (GH-108427)" (GH-111271) This reverts commit7f31676340
. The change resulted in a tautology and should not have been made. There may be an opportunity for additional clarity in this section, but this change wasn't it :) (cherry picked from commitc7d68f907a
) Ref: https://github.com/python/cpython/pull/108427#-issuecomment-1777525740 Co-authored-by: Zachary Ware <zach@python.org>
This commit is contained in:
parent
575bff3732
commit
ff7dc61643
|
@ -539,7 +539,7 @@ Shielding From Cancellation
|
|||
|
||||
is equivalent to::
|
||||
|
||||
res = await shield(something())
|
||||
res = await 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