promise-async/examples
kevinhwang91 3f6dcb2f0f fix!: use promise:new instead of promise.new
In Lua convention, create an object always carry `self`, so we must
break change for further development.

Create an promise object:
```lua
local p = promise:new(function(resolve, reject) end)
-- or
local p = promise(function(resolve, reject) end)
```
2023-01-05 20:50:52 +08:00
..
coc_nvim.lua Initial commit 2022-05-18 22:50:07 +08:00
demo.js fix: redundant await in demo 2022-05-19 04:24:15 +08:00
demo.lua fix!: use promise:new instead of promise.new 2023-01-05 20:50:52 +08:00
multiple_threads.lua Initial commit 2022-05-18 22:50:07 +08:00
read_file.lua Initial commit 2022-05-18 22:50:07 +08:00
README.md Initial commit 2022-05-18 22:50:07 +08:00
uva.lua Initial commit 2022-05-18 22:50:07 +08:00
write_file.lua Initial commit 2022-05-18 22:50:07 +08:00

Examples

Make sure that modules can be found under the package.path and package.cpath.

If can't find modules, please run export LUA_PATH="$(dirname $PWD)/lua/?.lua;;" under CWD in shell or install the modules except for this project.