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
Lua was quite pleasant to work with in this context!
Lua was quite pleasant to work with in this context!