New submission from tzongw <tzo...@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 <rep...@bugs.python.org>
<https://bugs.python.org/issue34433>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to