[issue26923] asyncio.gather drops cancellation

Guido van Rossum report at bugs.python.org
Tue Jun 14 20:55:15 EDT 2016


Guido van Rossum added the comment:

I think I agree with Johannes. If all children refuse to be cancelled because they are already done, the outer _GatheringFuture might as well refuse to be cancelled as well.

However I'm not sure I actually understand the mechanism whereby the calling Task ends up surviving, and Johannes' description appears garbled.

Can anyone add some print statements to various parts and explain it here?

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue26923>
_______________________________________


More information about the Python-bugs-list mailing list