MCPcopy Create free account
hub / github.com/nodejs/node / tick

Function tick

deps/undici/undici.js:1286–1290  ·  view source on GitHub ↗

* Trigger the onTick function to process the fastTimers array. * Exported for testing purposes only. * Marking as deprecated to discourage any use outside of testing. * @deprecated * @param {number} [delay=0] The delay in milliseconds to add to the now value.

(delay = 0)

Source from the content-addressed store, hash-verified

1284 * @param {number} [delay=0] The delay in milliseconds to add to the now value.
1285 */
1286 tick(delay = 0) {
1287 fastNow += delay - RESOLUTION_MS + 1;
1288 onTick();
1289 onTick();
1290 },
1291 /**
1292 * Reset FastTimers.
1293 * Exported for testing purposes only.

Callers

nothing calls this directly

Calls 1

onTickFunction · 0.70

Tested by

no test coverage detected