Closed baidwwy closed 2 months ago
I don't get it. Lua already has coroutines, and Pluto already has the scheduler library to reduce the boilerplate around using them.
Furthermore, the way we design our standard library is so that it can be used in both blocking and non-blocking ways, so I just don't see what problem this is trying to solve.
https://github.com/ms-jpq/lua-async-await