pantry/projects/github.com/luvit/luv/test.lua
Andrii Riabchenko d72df597f2 new file: projects/github.com/luvit/luv/package.yml
new file:   projects/github.com/luvit/luv/test.lua
2023-10-07 12:05:12 -04:00

8 lines
157 B
Lua

local uv = require('luv')
local timer = uv.new_timer()
timer:start(1000, 0, function()
print("Awake!")
timer:close()
end)
print("Sleeping");
uv.run()