3 ms·
You are not talking about UI events in the blog post. You are saying that there isn't a unified Windows API similar to kqueue or epoll that can be used for asyn
by adamnemecek 12y ago
You are not talking about UI events in the blog post. You are saying that there isn't a unified Windows API similar to kqueue or epoll that can be used for async file/stream I/O with which I disagree. AFAIK you can't use epoll to do UI events either.
- kentonv 12y agoX events are delivered via a socket. You can absolutely epoll that, and people in fact do so, and this is considered an essential feature.
- jmgao 12y agoOne of the best features of all of the epoll/poll/select functions is that they let you listen on arbitrary file descriptors uniformly. You can send events over a unix domain socket or a pipe, and just treat it as if it were a regular file. It's especially useful with stuff like signalfd or timerfd, where you can listen on sockets, handle signals, and have a timeout, with barely any additional code.
- adamnemecek 12y agothis is unrelated to the topic at hand.