Hacker News new | past | comments | ask | show | jobs | submit login

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.



Would highly suggest you pop onto Discord (https://discord.gg/vlang) to chat in #concurrency about this further...




Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: