3 ms·
How is your "case <-fd: fd.Read(bufSize)" not a race condition?
by echlebek 10y ago
How is your "case <-fd: fd.Read(bufSize)" not a race condition?
- atombender 10y agoRace condition? It's no different from select() followed by recv() in C. But I'm talking about semantics here, not suggesting that this would necessarily be how you'd write it. The main idea was allowing select{} to work on non-channel sources of notifications, such as file descriptors.