On Saturday, August 13, 2016 at 4:56:45 PM UTC+3, upad...@gmail.com wrote:
>
> Now given receiving on a closed channel never returns, above is not safe. 
> I can check inside my second case if ctx.Err() is non nil, but its not a 
> very clean solution. 
>
>
receiving on *nil* channel never returns, receiving  on *closed* channel 
always return zero value.

Djadala

-- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to