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

Why is the method called sendOnce? It’s send with a capacity limiter / semaphore right, so what about it is Once?


I think it really ought to be called "sendOneAtATime" but I assume the author just picked a bad name for it.


I'm really confused because I had to scroll half the comment section for the word `semaphore`.

This seems to be an interview question about JS esoterica, not concurrent programming.




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

Search: