Forgetting about sync.Cond (#72)
Official 100go entry on cases where condition variables are cleaner than channels or polling.
Official 100go entry on cases where condition variables are cleaner than channels or polling.
- Author: Teiva Harsanyi
- Authority: community
- Kind: guide
- URL: https://100go.co/#forgetting-about-synccond-72
What it covers
- condition waiting
- signal and broadcast
- sync.Cond use cases
Why authoritative
Official 100go website entry for this specific mistake.
Use when
- when should I use sync.Cond in Go
- is sync.Cond better than channels here
- how do I wait for a condition without polling
Keywords
- sync.Cond, condition variable, waiting, broadcast, mutex