3 ms·
For all asking what OP is talking about, this is example of using epoll directly in Go: https://gist.github.com/tevino/3a4f4ec4ea9d0ca66d4f https://gist.github
by lossolo 9y ago
For all asking what OP is talking about, this is example of using epoll directly in Go:
https://gist.github.com/tevino/3a4f4ec4ea9d0ca66d4f https://gist.github.com/tevino/3a4f4ec4ea9d0ca66d4f
This is description (from dotGo2017) of how netpoll works in Go under the hood if anyone is interested:
https://www.youtube.com/watch?v=xwlo3xigknI https://www.youtube.com/watch?v=xwlo3xigknI
- fpoling 9y agoI am not sure what exactly that gist tries to show. As it forces the go runtime to run each read call on a separated native thread, it just shows that one can use go to implement rather bad epoll antipattern.