mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
bpo-32684: Fix gather to propagate cancel of itself with return_exceptions (GH-7209)
This commit is contained in:
parent
1cee216cf3
commit
863b674909
4 changed files with 46 additions and 2 deletions
|
@ -640,6 +640,10 @@ Task functions
|
|||
outer Future is *not* cancelled in this case. (This is to prevent the
|
||||
cancellation of one child to cause other children to be cancelled.)
|
||||
|
||||
.. versionchanged:: 3.7.0
|
||||
If the *gather* itself is cancelled, the cancellation is propagated
|
||||
regardless of *return_exceptions*.
|
||||
|
||||
.. function:: iscoroutine(obj)
|
||||
|
||||
Return ``True`` if *obj* is a :ref:`coroutine object <coroutine>`,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue