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.

Usage Returns
ui.util.setInterval(func, delay) Number
Argument Type Details
func
Function The function to run after the specified delay.
delay
Number The time, in milliseconds (thousandths of a second), the timer should delay in between executions of the specified function.
Create a Mobile Website
View Site in Mobile | Classic
Share by: