NOTE
2.3 sync
An overview of the synchronization primitives provided by Go's sync package and links to Mutex, RWMutex, Cond, Once, Map, Pool, WaitGroup, and atomic.
This is a historical learning note and may contain outdated or incomplete understanding.
1. What It Is
Provides basic synchronization primitives.
Except for Once and WaitGroup, most are intended for low-level libraries.
high-level synchronization generally uses channels.
2. What It Contains
2.1. Locker
- An interface
- Has
LockandUnlockmethods
Discussion
Sign in with GitHub to comment. Discussions are stored as GitHub Issues.View on GitHub