Guido van Rossum <gu...@python.org> added the comment:

@dhalbert, it's probably better to file a new issue if you want changes to 
gather(). Although I suppose that if we want to deemphasize it, we shouldn't be 
adding new features to it. My own new feature idea would be to have it wait for 
all tasks and then if there are any exceptions, raise an ExceptionGroup. That 
(like any new gather() behaviors) would require a new keyword-only flag to 
gather(). If we're going to deemphasize it I might not bother though.

There's one thing that gather() does that TaskGroup doesn't: it gives us the 
return values from the tasks. The question is whether that's useful. If it is 
maybe we should *not* deepmhasize gather() quite as much and then adding new 
features would be okay.

----------
nosy:  -dhalbert

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue46752>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to