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

> is you need to track if you've closed the channel

There is where you can use a function that captures the channel and guarantees that no matter how many times it is called that it only closes the channel once.



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

Search: