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

Function clearInterval

lib/timers.js:171–176  ·  view source on GitHub ↗

* Cancels an interval. * @param {Timeout | string | number} timer * @returns {void}

(timer)

Source from the content-addressed store, hash-verified

169 * @returns {void}
170 */
171function clearInterval(timer) {
172 // clearTimeout and clearInterval can be used to clear timers created from
173 // both setTimeout and setInterval, as specified by HTML Living Standard:
174 // https://html.spec.whatwg.org/multipage/timers-and-user-prompts.html#dom-setinterval
175 clearTimeout(timer);
176}
177
178Timeout.prototype.close = function() {
179 clearTimeout(this);

Callers 15

setupConnectionsTrackingFunction · 0.85
httpServerPreCloseFunction · 0.85
exitHandlerFunction · 0.85
closeMethod · 0.85
stopMethod · 0.85
#actualCloseMethod · 0.85
unrefFunction · 0.85
setIntervalFunction · 0.85
startQueueMethod · 0.85
test-timers.jsFile · 0.85
test-vm-memleak.jsFile · 0.85

Calls 1

clearTimeoutFunction · 0.70

Tested by 2

testFunction · 0.68
testFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…