commit | fe3591bd8a96873abc98bb9d2d5c62f27efca3e9 | [log] [tgz] |
---|---|---|
author | berbreik <berbreik@gmail.com> | Sat Jan 11 04:45:34 2025 +0530 |
committer | Gopher Robot <gobot@golang.org> | Fri Jan 17 07:49:37 2025 -0800 |
tree | 2568876928e5d2458b07069096b2fa30bbde4782 | |
parent | 913fb63af28f446cd10c684ee847b5606cf328f7 [diff] |
sync/errgroup: improve documentation for semaphore limit behavior Updated the documentation for `SetLimit` and `Go` functions in the `errgroup` package. the note clarifies the behavior when the semaphore limit is set to zero, which could lead to a deadlock if not handled properly. the updated documentation warns users to set a positive semaphore limit to avoid blocking goroutines and potential deadlock this change improves the clarity of API and helps users understand how to properly use the semaphore limit to prevent issues in concurrent execution Change-Id: Ie62acc38ef804b3590c04bddba00a3cce21e8cef Reviewed-on: https://go-review.googlesource.com/c/sync/+/642215 Reviewed-by: Michael Knyszek <mknyszek@google.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: Ian Lance Taylor <iant@google.com> Auto-Submit: Ian Lance Taylor <iant@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.