News for hackers. Stuff that matters.
Re:Go Concurrency by jgrahamc on Thursday March 28, 2013 @08:52AM (#5454466)
You would not want to share a die channel like that with multiple workers because when doing die <- true you would not know which one received it.

As I said early on in the presentation using unbuffered channels is 'best' because it makes reasoning about concurrency easy. Given that die is unbuffered the die <- true has to synchronize with something in order to happen; that something is the case <-die. If die were buffered then this example would simply not work.

Re:Go Concurrency by vanderZwan on Thursday March 28, 2013 @10:40AM (#5455021)
I realise that, I just find the example interesting because I often would expect to use a whole pool of workers, not just one. The close(start) idiom you used earlier makes more sense in that context (but in a close(die) form).