MCPcopy Create free account
hub / github.com/Justineo/github-hovercard / check

Function check

extensions/edge/timeout.js:9–18  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

7 var timerId = __nextId++;
8
9 function check() {
10 if (!__activeTimers[timerId]) {
11 return;
12 }
13 if (Date.now() - start >= delay) {
14 callback();
15 } else {
16 requestAnimationFrame(check);
17 }
18 }
19 requestAnimationFrame(check);
20
21 __activeTimers[timerId] = true;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected