Re:Goroutines, Nonblocking I/O, and Memory Usage
by predakanga on Thursday January 05, 2017 @09:58PM
(#13333565)
One of the features which I would most love to see in Go is a Selectable interface, which could make things like this doable (albeit as a bit of a hack).
Even if a socket's Selectable implementation just abstracted away the goroutine from your first example, it would make the developer experience a lot nicer for me.
Even if a socket's Selectable implementation just abstracted away the goroutine from your first example, it would make the developer experience a lot nicer for me.