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

Method refresh

github-actions/browserstack/set-browserstack-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 * @returns {void}
2537 */
2538 refresh() {
2539 if (this._state === NOT_IN_LIST) {
2540 fastTimers.push(this);
2541 }
2542 if (!fastNowTimeout || fastTimers.length === 1) {
2543 refreshTimeout();
2544 }
2545 this._state = PENDING;
2546 }
2547 /**
2548 * The `clear` method cancels the timer, preventing it from executing.
2549 *

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