Comment by Cyph0n
Context cancellation is not always desirable. I personally have been bitten multiple times by the default behavior of errgroup.
Context cancellation is not always desirable. I personally have been bitten multiple times by the default behavior of errgroup.
You have to explicitly propagate the group's context if you want it to cancel. You can just not do that if you don't want - there certainly are cases for that.