I am trying to find out what is a nil channel. I mean, from the spec I can
understand it's semantic, but I am not sure how to create it. I think I
need to change existing (closed) channel to nil channel to stop consuming
nil values in a select statement, but I am unable to find how to do it.
So what is the trick to create a nil channel? This does not work:
ch = make(chan xyz)
ch = make(chan nil)