ui.util.setTimeout

Calls a function after a fixed time delay.

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

UsageReturns
ui.util.setTimeout(func, delay)Number
ArgumentTypeDetails
funcFunctionThe function to run at the specified interval.
delayNumberThe time, in milliseconds (thousandths of a second), the timer should delay before execution of the specified function.