setInterval
Signature - util.ts#L208
declare function setIntervalImplementation<T extends any[]>(
callback: (...args: T) => void,
delayMs?: number,
subscription?: Disposable,
...args: T
): voidDisposable-based alternative to built-in setInterval.
Parameters
| Parameter | Type | Description |
|---|---|---|
| callback | | The callback to schedule. |
| delayMs | | The amount of delay. |
| subscription | | If this is disposed then the request will be cancelled. |
| args | | The arguments to send to the callback. |