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

A goroutine is a "task" though. And typically you spin up a goroutine for your select, and hang your current goroutine on its completion.

Seems pretty similar to me.



For networking, it's using epoll() under the scenes; depends on what exact non-blocking operation you're using, though.

See this very very old HN thread:

https://news.ycombinator.com/item?id=3565703

(Hopefully the standard library has improved since then.)




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

Search: