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

Function setTimeout

github-actions/browserstack/set-browserstack-env.js:2571–2573  ·  view source on GitHub ↗

* The setTimeout() method sets a timer which executes a function once the * timer expires. * @param {Function} callback A function to be executed after the timer * expires. * @param {number} delay The time, in milliseconds that the timer should * wait bef

(callback, delay, arg)

Source from the content-addressed store, hash-verified

2569 * @returns {NodeJS.Timeout|FastTimer}
2570 */
2571 setTimeout(callback, delay, arg) {
2572 return delay <= RESOLUTION_MS ? setTimeout(callback, delay, arg) : new FastTimer(callback, delay, arg);
2573 },
2574 /**
2575 * The clearTimeout method cancels an instantiated Timer previously created
2576 * by calling setTimeout.

Callers 6

refreshTimeoutFunction · 0.70
setTimeoutMethod · 0.70
mockDispatchFunction · 0.70
delayFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected