|
|
|
|
|
by scottlamb
1699 days ago
|
|
> canceling the context should always be safe, and is more likely to safely handle what otherwise would be a bug, than it is to cause a bug. They gave an example of a bug it caused, and I haven't seen any examples of bugs it would have prevented, so I'm not sure I agree. |
|
https://github.com/golang/go/blob/master/src/context/context...
So in this case, errgroup probably doesn't have a choice and needs to call cancel() at some point.