[New-bugs-announce] [issue32754] feature request: asyncio.gather/wait cancel children on first exception
Alexander Mohr
report at bugs.python.org
Fri Feb 2 18:29:02 EST 2018
New submission from Alexander Mohr <thehesiod at gmail.com>:
currently gather/wait allow you to return on the first exception and leave the children executing.
A very common use case that I have is of launching multiple tasks, and if any of them fail, then all should fail..otherwise the other tasks would continue running w/o anyone listening for the results. To accomplish this I wrote a method like the following: https://gist.github.com/thehesiod/524a1f005d0f3fb61a8952f272d8709e. I think it would be useful to many others as on optional perhaps a parameter to each of these methods.
What do you guys think?
----------
components: asyncio
messages: 311527
nosy: asvetlov, thehesiod, yselivanov
priority: normal
severity: normal
status: open
title: feature request: asyncio.gather/wait cancel children on first exception
versions: Python 3.8
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue32754>
_______________________________________
More information about the New-bugs-announce
mailing list