Static function
Fast
Timer.SetTimeout
Executes a function, after waiting a specified number of milliseconds
Syntax
Timer.SetTimeout(callback, milliseconds = 0, parameters... = nil)
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
callback
|
function | — | The callback that will be executed |
milliseconds
optional
|
integer | 0 |
The time in milliseconds to wait before executing the function |
parameters...
optional
|
any | nil |
Additional parameters to pass to the function |
Returns
- integer the timeout_id