blob: 1119af81d41bcf83850ef5696d6c5cc002d8ea05 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
-- See https://www.lua.org/manual/5.3/ for Lua
-- See http://ftp.osmocom.org/docs/latest/osmocombb-usermanual.pdf -- Scripting with Lua
-- Start and stop timer with callback. Schedule a timeout and
-- resume execution then.
-- Timeout in 10 seconds
local timer = osmo.timeout(10, function()
print("Timeout occurred");
end)
-- We can cancel it. The callback will not be called
timer:cancel()
|