summaryrefslogtreecommitdiff
path: root/includes/external/matrix/node_modules/matrix-js-sdk/lib/realtime-callbacks.d.ts
blob: e2d4f45f8d32675b41e7380d4649d762f00f6039 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/**
 * reimplementation of window.setTimeout, which will call the callback if
 * the wallclock time goes past the deadline.
 *
 * @param func -   callback to be called after a delay
 * @param delayMs -  number of milliseconds to delay by
 *
 * @returns an identifier for this callback, which may be passed into
 *                   clearTimeout later.
 */
export declare function setTimeout(func: (...params: any[]) => void, delayMs: number, ...params: any[]): number;
/**
 * reimplementation of window.clearTimeout, which mirrors setTimeout
 *
 * @param key -   result from an earlier setTimeout call
 */
export declare function clearTimeout(key: number): void;
//# sourceMappingURL=realtime-callbacks.d.ts.map