Two extra steps in example_simple.tum that sleep for 10s, used to verify that pressing Stop interrupts engaged blocking steps.
15 lines
229 B
Lua
15 lines
229 B
Lua
tm = require("tm")
|
|
socket = require("socket")
|
|
|
|
local module = {}
|
|
|
|
function module.func_to_be_executed(param)
|
|
-- return tm.gd(param)
|
|
return param
|
|
end
|
|
|
|
function module.long_wait(sec)
|
|
socket.sleep(sec)
|
|
end
|
|
|
|
return module |