4 ms·
Am I the only one who prefer epoll style concurrency than coroutines? Are coroutines more somehow more powerful?
by siscia 9y ago
Am I the only one who prefer epoll style concurrency than coroutines?
Are coroutines more somehow more powerful?
- squiguy7 9y agoYou will probably be interested in mio [1] then. [1]: https://github.com/carllerche/mio https://github.com/carllerche/mio
- stormbrew 9y agoThey're orthogonal? Coroutines as built here are just sugar around building the state machines you necessarily build by hand if you're using something like epoll. They can also be used to model state machines in general, so long as there's a well defined progression of states in one direction. You would use these coroutines with tokio or mio, which are event driven frameworks that use epoll at their core on Linux.