5 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 11y 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 11y agoAgreed, but Node has had co-routines in the form of the node-fibers package since almost the very beginning.