Clearly the use of errgroup is flawed. 1) You can't pass in variables, so this is likely to race. 2) You can't get a set of errors, so this is a bad API. For the second problem, it would be much more sane to return a multierr or a list of errors. If there's no fix for the first, I think it should be removed from the lib.