SetInterval / ClearInterval — Global Interval Utilities
These are global functions injected by st_libs (not on the st table).
lua
-- Start a repeating interval
local id = SetInterval(function()
-- runs every 1000ms
end, 1000)
-- Change interval speed
SetInterval(id, 500) -- change to 500ms
-- Stop the interval
ClearInterval(id)