ui.util.setInterval

Repeatedly calls a function with a fixed time delay between each call.

Returns a key that can be passed to ui.util.clearTimeout to remove the timeout.

UsageReturns
ui.util.setInterval(func, delay)Number
ArgumentTypeDetails
funcFunctionThe function to run after the specified delay.
delayNumberThe time, in milliseconds (thousandths of a second), the timer should delay in between executions of the specified function.