default clauses in the select statements execute when no other case is ready, meaning that the selects never block"--
You received this message because you are subscribed to the Google Groups "golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Because this is simplified version of the code I am writing.
What I am having is a goroutine that keeps some data and gives it to main routine via channel.
Without default in a main's select loop I would block when there are no data left, but with default I could receive fewer data than I wanted.