[issue32754] feature request: asyncio.gather/wait cancel children on first exception

2022-03-30 Thread Irit Katriel


Change by Irit Katriel :


--
stage:  -> resolved
status: pending -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue32754] feature request: asyncio.gather/wait cancel children on first exception

2022-03-21 Thread Irit Katriel


Irit Katriel  added the comment:

Task groups are implemented under Issue46752.

--
nosy: +iritkatriel
resolution:  -> duplicate
status: open -> pending
superseder:  -> Introduce task groups to asyncio and change task cancellation 
semantics

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue32754] feature request: asyncio.gather/wait cancel children on first exception

2018-02-02 Thread Yury Selivanov

Yury Selivanov  added the comment:

I think it's a good idea and I wanted to implement it by copying TaskGroups 
from curio in 3.7.  But then I saw Trio's nurseries and I have a few ideas 
about slightly different design inspired by both curio and Trio :)

I have some very WIP code that I plan to finish in a few weeks. I'll update 
this issue then.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue32754] feature request: asyncio.gather/wait cancel children on first exception

2018-02-02 Thread Alexander Mohr

New submission from Alexander Mohr :

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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com