4 ms·
Keep reading?
by rsc 5y ago
Keep reading?
- karmakaze 5y agoYes, that was about the original Go documentation. The suggestion still doesn't mention that the difficultly with sync/atomic isn't the memory model per-se but rather the lack of yielding to another goroutine.
- Groxx 5y agoSomething like `runtime.Gosched()`? https://pkg.go.dev/runtime#Gosched https://pkg.go.dev/runtime#Gosched