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.
Usage | Returns |
---|
ui.util.setTimeout(func, delay) | Number |
Argument | Type | Details |
---|
func | Function | The function to run at the specified interval. |
delay | Number | The time, in milliseconds (thousandths of a second), the timer should delay before execution of the specified function. |
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2023-10-06 UTC.
[null,null,["Last updated 2023-10-06 UTC."],[[["`ui.util.setTimeout` executes a provided function after a specified delay."],["It returns a unique key that can be used with `ui.util.clearTimeout` to cancel the scheduled execution."],["The delay is defined in milliseconds, controlling the time before the function is triggered."]]],[]]