9e445d1917
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
10 lines
149 B
Lua
10 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))
|