Oh great!
BTW, I’m concerned about the “long-running” usecase where unhandled exceptions should not be stored in the taskgroup object (self._errors
) for an indefinite length of time, to prevent memory leaks with continuously spawned & destroyed tasks. This is why I have deliberately removed the feature of raising up an exception group in aiotools.Supervisor
which is a porting of @DontPanicO’s PR.
As long as this concern is taken in account, I think it’s fine to have an option like defer_errors=True
, but in that case the name would require changes, ignore_errors=True
or delegate_errors=handler_func
.