mirror of
https://github.com/vxcontrol/lualibs-winapi.git
synced 2026-07-01 13:54:03 -04:00
20 lines
325 B
Lua
20 lines
325 B
Lua
local W = require 'winapi'
|
|
local e = W.event()
|
|
local count = 1
|
|
local finished
|
|
|
|
W.make_timer(500,function()
|
|
print 'tick'
|
|
if count == 5 then
|
|
print 'finished!'
|
|
finished = true
|
|
end
|
|
e:signal()
|
|
count = count + 1
|
|
end)
|
|
|
|
while not finished do
|
|
e:wait()
|
|
print 'gotcha'
|
|
end
|