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

Function clearTimeout

github-actions/browserstack/set-browserstack-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 * @param {NodeJS.Timeout|FastTimer} timeout
2579 */
2580 clearTimeout(timeout) {
2581 if (timeout[kFastTimer]) {
2582 timeout.clear();
2583 } else {
2584 clearTimeout(timeout);
2585 }
2586 },
2587 /**
2588 * The setFastTimeout() method sets a fastTimer which executes a function once
2589 * the timer expires.

Callers 4

refreshTimeoutFunction · 0.70
resetFunction · 0.70
_setResultMethod · 0.70

Calls 1

clearMethod · 0.45

Tested by

no test coverage detected