Registry / utility / golang-sync

golang-sync

JSON →
library0.21.0gogounverified

Package sync provides additional synchronization primitives beyond the standard library.

go get github.com/golang/sync
INSTALL
IMPORT
SIG · GOLANG-SYNC
G
golang-sync
utilitygov0.21.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

sync
golang.org/x/sync

Uses errgroup to run concurrent tasks with error propagation.

package main import ( "context" "fmt" "golang.org/x/sync/errgroup" ) func main() { g, ctx := errgroup.WithContext(context.Background()) g.Go(func() error { select { case <-ctx.Done(): return ctx.Err() default: return nil } }) if err := g.Wait(); err != nil { fmt.Println(err) } }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.21.0latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
golang-sync — go get golang-sync · libregistry