Skip to content

Function: setInterval() ​

ts
function setInterval<A>(
   callback, 
   delay?, 
   ...args
): number;

Defined in: types/desktop-engine.d.ts:4974

Runs a callback repeatedly, every delay milliseconds but at least 4, with the arguments after the delay. The delay is converted like setTimeout's. Its beats keep to the period: one a slow callback misses is skipped, not added to the period. Returns the id for clearInterval, which is never 0.

Type Parameters ​

Type Parameter
A extends any[]

Parameters ​

ParameterType
callback(...args) => void
delay?number
...args?A

Returns ​

number

The SDK is released under the Apache License 2.0