MCPcopy Create free account
hub / github.com/deepnote/vscode-deepnote / clearPendingTimers

Function clearPendingTimers

src/test/common.ts:20–34  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

18
19const pendingTimers: any[] = [];
20export function clearPendingTimers() {
21 while (pendingTimers.length) {
22 const timer = pendingTimers.shift();
23 try {
24 clearTimeout(timer);
25 } catch {
26 // Noop.
27 }
28 try {
29 clearInterval(timer);
30 } catch {
31 // Noop.
32 }
33 }
34}
35
36/**
37 * Wait for a condition to be fulfilled within a timeout.

Callers 1

closeActiveWindowsFunction · 0.90

Calls 1

shiftMethod · 0.80

Tested by

no test coverage detected