$ luarocks install promise-async-await
To synchronize the program execution when dealing with asynchronous operations.
This allows to simplify the writing and reading of asynchronous operations compared to callback function.
The async and await functions allows asynchronous/non-blocking functions to be written in a traditional synchronous/blocking style.
You also benefits of the whole Promise API, such as executing multiple parallel promises.
Versions
Dependencies
lua >= 5.4