AlexIII / lua-promise-async-await

Experimental implementation of Promise and async/await for Lua

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Lua Promises and async/await functions

This is an experimental implementation of Promises and async/await pattern for Lua.

See Promise-test.lua and AsyncAwait-test.lua for usage examples.

The library is designed to mimic javascript behavior of the corresponding concepts.

In order to make use of Promises (and async functions) you will first need a Lua library with asynchronous API based on callback concepts (for example, Node MCU). The reference implementation of Lua does not have one.

About

Experimental implementation of Promise and async/await for Lua


Languages

Language:Lua 100.0%