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

A single-item-buffered chan is probably most common, but a sync.WaitGroup w/ a 1 add can work if you don't need to do other ops while waiting.


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

Search: