blob: 53344dc88cf2e540765f9733fe3b6022e36c7a11 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
local llby = require"lullaby"
local t = llby.thread.async(function(res)
for i = 1, 50 do
print(i)
os.execute("sleep 1")
end
end)
os.execute("sleep 5")
print("killing")
t:close()
t:await()
print("after kill")
|