2 ms·
Silly me - the syntax that I proposed was the second one err := close(ch) to handle case when you don't want a panic on closing of closed channel. The fir
by tandr 6y ago
Silly me - the syntax that I proposed was the second one
err := close(ch)
to handle case when you don't want a panic on closing of closed channel. The first one was discussed on golang-nuts, but it died there.
- ylluminate 6y agoWould highly suggest you pop onto Discord (https://discord.gg/vlang https://discord.gg/vlang) to chat in #concurrency about this further...