Concurrency: Promise, sync + goroutines, std::thread/std::sync, <thread>
#Concurrency is built into the language: go f() starts a goroutine, and channels (chan T) pass values between goroutines. The sync package provides WaitGroup (wait for a group), Mutex and RWMutex (protect shared data) and Once; sync/atomic has atomic counters. context carries cancellation and deadlines through call chains, and errgroup (golang.org/x/sync) adds error handling to a WaitGroup.
Complete program
Complete program. Standard library: ships with Go, no install.
Most used: go func(), chan, select, sync.WaitGroup with wg.Go (Go 1.25+), sync.Mutex, context.WithTimeout, errgroup.Group. go test -race finds data races.