mirror of
https://github.com/ivabus/pantry
synced 2024-11-26 02:15:06 +03:00
d72df597f2
new file: projects/github.com/luvit/luv/test.lua
8 lines
No EOL
157 B
Lua
8 lines
No EOL
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() |