Re:Goroutines, Nonblocking I/O, and Memory Usage
by echlebek on Friday January 06, 2017 @03:10PM
(#13339758)
How is your "case <-fd: fd.Read(bufSize)" not a race condition?
[ Parent
| on HN ]
Re:Goroutines, Nonblocking I/O, and Memory Usage
by atombender on Friday January 06, 2017 @03:18PM
(#13339818)
Race 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.