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

Method refresh

github-actions/saucelabs/set-saucelabs-env.js:2538–2546  ·  view source on GitHub ↗

* Sets the timer's start time to the current time, and reschedules the timer * to call its callback at the previously specified duration adjusted to the * current time. * Using this on a timer that has already called its callback will reactivate * the timer.

()

Source from the content-addressed store, hash-verified

2536 /**
2537 * Sets the timer's start time to the current time, and reschedules the timer
2538 * to call its callback at the previously specified duration adjusted to the
2539 * current time.
2540 * Using this on a timer that has already called its callback will reactivate
2541 * the timer.
2542 *
2543 * @returns {void}
2544 */
2545 refresh() {
2546 if (this._state === NOT_IN_LIST) {
2547 fastTimers.push(this);
2548 }
2549 if (!fastNowTimeout || fastTimers.length === 1) {

Callers 8

refreshTimeoutFunction · 0.45
constructorMethod · 0.45
setTimeoutMethod · 0.45
resumeMethod · 0.45
onHeadersCompleteMethod · 0.45
onBodyMethod · 0.45
writeMethod · 0.45
endMethod · 0.45

Calls 2

refreshTimeoutFunction · 0.70
pushMethod · 0.45

Tested by

no test coverage detected