MCPcopy Index your code
hub / github.com/nodejs/node / refresh

Method refresh

deps/undici/undici.js:1200–1208  ·  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

1198 * @returns {void}
1199 */
1200 refresh() {
1201 if (this._state === NOT_IN_LIST) {
1202 fastTimers.push(this);
1203 }
1204 if (!fastNowTimeout || fastTimers.length === 1) {
1205 refreshTimeout();
1206 }
1207 this._state = PENDING;
1208 }
1209 /**
1210 * The `clear` method cancels the timer, preventing it from executing.
1211 *

Callers 15

runNPMPackageTestsFunction · 0.45
setupFunction · 0.45
getItem.jsFile · 0.45
setItem.jsFile · 0.45
removeItem.jsFile · 0.45
mainFunction · 0.45
prepareFunction · 0.45
prepareFunction · 0.45
mainFunction · 0.45
setupFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45

Calls 2

refreshTimeoutFunction · 0.70
pushMethod · 0.45

Tested by 2

testFunction · 0.36
seleniumFunction · 0.36