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
funcFunction

The function to run after the specified delay.

delayNumber

The time, in milliseconds (thousandths of a second), the timer should delay in between executions of the specified function.

Examples

JavaScript

// Your example goes here!

Python

# Your example goes here!