| commit | 2a180e22fddcc336475e72aa950be958c1b68d33 | [log] [tgz] |
|---|---|---|
| author | Justin Mayhew <mayhew@live.ca> | Wed Dec 03 08:48:14 2025 -0400 |
| committer | Gopher Robot <gobot@golang.org> | Wed Dec 03 16:24:39 2025 -0800 |
| tree | 4981880b813298cbba7e0a264c5893e333df058a | |
| parent | 1966f539bbd7664efd5bb7462ae94d9db67f4502 [diff] |
errgroup: use consistent read for SetLimit panic This could produce a confusing panic message if the second len(g.sem) call returns 0. Avoid that by reading it once. Change-Id: Ibdb4963f90921bc20427b3f1e2de410638f6cb6b Reviewed-on: https://go-review.googlesource.com/c/sync/+/726280 Reviewed-by: Alan Donovan <adonovan@google.com> Auto-Submit: Alan Donovan <adonovan@google.com> Reviewed-by: Sean Liao <sean@liao.dev> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
This repository provides Go concurrency primitives in addition to the ones provided by the language and “sync” and “sync/atomic” packages.
This repository uses Gerrit for code changes. To learn how to submit changes to this repository, see https://go.dev/doc/contribute.
The git repository is https://go.googlesource.com/sync.
The main issue tracker for the sync repository is located at https://go.dev/issues. Prefix your issue with “x/sync:” in the subject line, so it is easy to find.