Exactly, "select never selects a blocking case" is what we're taking
advantage of in the example I sent. If you DO pass in a non-nil
channel, it will be hit, otherwise (if you pass in nil) the default
case will be hit.
—Sam
--
Sam Whited
pub 4096R/54083AE104EA7AD3
https://blog.samwhited.com
--
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+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.