MCPcopy Create free account
hub / github.com/angular/dev-infra / clearTimeout

Function clearTimeout

github-actions/saucelabs/set-saucelabs-env.js:2580–2586  ·  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

2578 setTimeout(callback, delay, arg) {
2579 return delay <= RESOLUTION_MS ? setTimeout(callback, delay, arg) : new FastTimer(callback, delay, arg);
2580 },
2581 /**
2582 * The clearTimeout method cancels an instantiated Timer previously created
2583 * by calling setTimeout.
2584 *
2585 * @param {NodeJS.Timeout|FastTimer} timeout
2586 */
2587 clearTimeout(timeout) {
2588 if (timeout[kFastTimer]) {
2589 timeout.clear();

Callers 4

refreshTimeoutFunction · 0.70
resetFunction · 0.70
_setResultMethod · 0.70

Calls 1

clearMethod · 0.45

Tested by

no test coverage detected