O'Reilly logo
  • Peter Malmgren thinks this is interesting:

Now each iteration of the countdown loop needs to wait for an event to arrive on one of the two channels: the ticker channel if everything is fine (“nominal” in NASA jargon) or an abort event if there was an “anomaly.” We can’t just receive from each channel because whichever operation we try first will block until completion. We need to multiplex these operations, and to do that, we need a select statement.


Cover of The Go Programming Language


I wonder if this uses epoll