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
| Parameter | Type |
|---|---|
callback | (...args) => void |
delay? | number |
...args? | A |
Returns
number
