title: can a message sent to channel be lost?
body: <p>The question is in the title. Let's say I have several goroutines (more than 100) all of which eventually send data to one chan (name it <code>mychan := make(chan int)</code>) One another goroutine does <code>&lt;- mychan</code> in an endless for loop Is it okay or the chan can happen to lose some data? Should I use buffered chan instead? Or perhaps I am to create a chan and a "demon" goroutine that will extract message for each worker goroutine?</p>