MCPcopy Index your code
hub / github.com/nodejs/node / clearTimeout

Function clearTimeout

deps/undici/undici.js:1241–1247  ·  view source on GitHub ↗

* The clearTimeout method cancels an instantiated Timer previously created * by calling setTimeout. * * @param {NodeJS.Timeout|FastTimer} timeout

(timeout)

Source from the content-addressed store, hash-verified

1239 * @param {NodeJS.Timeout|FastTimer} timeout
1240 */
1241 clearTimeout(timeout) {
1242 if (timeout[kFastTimer]) {
1243 timeout.clear();
1244 } else {
1245 clearTimeout(timeout);
1246 }
1247 },
1248 /**
1249 * The setFastTimeout() method sets a fastTimer which executes a function once
1250 * the timer expires.

Callers 11

refreshTimeoutFunction · 0.70
resetFunction · 0.70
clearHttp2IdleTimeoutFunction · 0.70
offMethod · 0.50
scheduleFunction · 0.50
requestUpdateMethod · 0.50
clearMethod · 0.50
syncScrollMethod · 0.50
testharness.jsFile · 0.50

Calls 1

clearMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…