[New-bugs-announce] [issue34433] cancel all other pending child futures

tzongw report at bugs.python.org
Sun Aug 19 09:13:40 EDT 2018


New submission from tzongw <tzongw at 163.com>:

In `tasks.gather`, when a child future throws an exception and `return_exceptions` is False, outer future will call `set_exception` while other child futures is still running. In this case, outer future call `_GatheringFuture.cancel' first to cancel all other pending child futures for efficiency.

----------
components: asyncio
messages: 323755
nosy: asvetlov, tzongw, yselivanov
priority: normal
severity: normal
status: open
title: cancel all other pending child futures
type: performance
versions: Python 3.6

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue34433>
_______________________________________


More information about the New-bugs-announce mailing list