Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Thanks for making the above clear. I should probably have made that explicit in the article but I was so focused on hard cancellation that all I've said about soft cancellation was, basically, "do it by hand", without going into details.

In fact, being able to share single channel between multiple goroutines and using "close" as a broadcast mechanism is one of the best -- if rarely mentioned -- ideas in Go.



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

Search: