I have been trying to understand channels in Go for a while now. But one thing makes me wonder. What happens exactly when you call,
For {
select {
case <-chan:
}
}
Does it check the chan every for iteration for updates? How would it compare to a normal case i = int:
, or a case atomic.LoadUint64() = uint64:
performance-wise?