sync package
Canonical docs for mutexes, condition variables, pools, once, maps, and synchronization primitives.
Canonical docs for mutexes, condition variables, pools, once, maps, and synchronization primitives.
- Author: Go Team
- Authority: primary
- Kind: package-doc
- URL: https://pkg.go.dev/sync
What it covers
- mutex semantics
- sync primitive APIs
- coordination and shared-state protection
Why authoritative
Official package documentation for Go synchronization primitives.
Use when
- should this use sync.Mutex
- how do I use this sync primitive
- is this shared state synchronized correctly in Go
Keywords
- sync, mutex, once, waitgroup, synchronization