MCPcopy Create free account
hub / github.com/NativeScript/NativeScript / clearTimeout

Function clearTimeout

packages/core/timer/index.android.ts:51–58  ·  view source on GitHub ↗
(id: number)

Source from the content-addressed store, hash-verified

49}
50
51export function clearTimeout(id: number): void {
52 const index = id;
53 if (timeoutCallbacks[index]) {
54 timeoutHandler.removeCallbacks(timeoutCallbacks[index]);
55 delete timeoutCallbacks[index];
56 delete timeoutCallbacksCb[index];
57 }
58}
59
60export function setInterval(callback: Function, milliseconds = 0, ...args): number {
61 milliseconds += 0;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected