3 ms·
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
by Groxx 10y ago
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.
- azernik 10y agoFor 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 https://news.ycombinator.com/item?id=3565703 (Hopefully the standard library has improved since then.)
- deleted 10y ago[deleted]