Skip to content

Function: setInterval() ​

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

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

Runs a callback repeatedly, every delay milliseconds but at least 4, with the arguments after the delay. The delay is converted like setTimeout's. 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