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
funcFunction

The function to run at the specified interval.

delayNumber

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

Examples

JavaScript

// Your example goes here!

Python

# Your example goes here!