No description
Find a file
berbreik fe3591bd8a 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>
2025-01-17 07:49:37 -08:00
errgroup sync/errgroup: improve documentation for semaphore limit behavior 2025-01-17 07:49:37 -08:00
semaphore semaphore: cancel acquisition with a done context 2024-03-04 17:26:02 +00:00
singleflight singleflight: fix typo in singleflight_test.go 2024-11-13 01:18:28 +00:00
syncmap all: update go directive to 1.18 2023-10-11 14:04:17 +00:00
codereview.cfg .: add codereview.cfg 2016-12-06 01:46:32 +00:00
CONTRIBUTING.md CONTRIBUTING.md: remove note about not accepting Pull Requests 2018-03-14 18:01:46 +00:00
go.mod all: update go directive to 1.18 2023-10-11 14:04:17 +00:00
LICENSE LICENSE: update per Google Legal 2024-07-16 16:06:58 +00:00
PATENTS initial commit 2015-10-30 14:31:46 +11:00
README.md README: don't recommend go get 2024-11-01 00:46:18 +00:00

Go Sync

Go Reference

This repository provides Go concurrency primitives in addition to the ones provided by the language and "sync" and "sync/atomic" packages.

Report Issues / Send Patches

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.