setInterval: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
(No difference)
|
Revision as of 20:03, 8 May 2020
Function
Server and Client
Online and Offline
Available since Server 1.0.0, Client 1.0.0
Timer setInterval(function callback, int durationMilliseconds, [ ... ])
The setInterval function is used to add a timer with a callback function that is invoked each time the specified duration has passed.
Parameters
1) | int | durationMilliseconds | The interval, in milliseconds, to call the scripting function. |
2) | function | callback | The scripting function to call when each interval has occurred. |
3) | vararg | ... | Optional, defaults to n/a. The arguments to send to the callback function. |
Return
Timer | A handle to the timer. |
Callbacks
function callback([...])
1) | ... | vararg | The arguments that were sent to the setInterval function.
|
Notes
There aren't any notes for this function.
Examples
There aren't any examples for this function.
Compatibility
There isn't any compatibility information for this function.
Related
Server Related
clearImmediate
clearInterval
clearTimeout
setImmediate
setInterval
setTimeout
Client Related
clearImmediate
clearInterval
clearTimeout
setImmediate
setInterval
setTimeout