11 lines
149 B
Lua
11 lines
149 B
Lua
|
S = State()
|
||
|
T = thread(S, [[
|
||
|
while true do
|
||
|
check_interrupted()
|
||
|
end
|
||
|
]])
|
||
|
|
||
|
sleep(100)
|
||
|
T:interrupt()
|
||
|
assert(not pcall(function() T:wait() end))
|