4 ms·
Coroutines are much better suited to event driven, non blocking IO code. Sorry for the shameless plug but I recently released my hobby project that uses Lua cor
by raksoras 12y ago
Coroutines are much better suited to event driven, non blocking IO code. Sorry for the shameless plug but I recently released my hobby project that uses Lua coroutines for nonblocking HTTP server: https://github.com/raksoras/luaw https://github.com/raksoras/luaw
Lua was quite pleasant to work with in this context!
- olegp 12y agoAgreed, but Node has had co-routines in the form of the node-fibers package since almost the very beginning.