Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: golang/sync
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v0.10.0
Choose a base ref
...
head repository: golang/sync
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v0.11.0
Choose a head ref
  • 1 commit
  • 1 file changed
  • 1 contributor

Commits on Jan 17, 2025

  1. 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>
    berbreik authored and gopherbot committed Jan 17, 2025
    Configuration menu
    Copy the full SHA
    fe3591b View commit details
    Browse the repository at this point in the history
Loading