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

Function setTimeout

deps/undici/undici.js:1232–1234  ·  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 before the sp

(callback, delay, arg)

Source from the content-addressed store, hash-verified

1230 * @returns {NodeJS.Timeout|FastTimer}
1231 */
1232 setTimeout(callback, delay, arg) {
1233 return delay <= RESOLUTION_MS ? setTimeout(callback, delay, arg) : new FastTimer(callback, delay, arg);
1234 },
1235 /**
1236 * The clearTimeout method cancels an instantiated Timer previously created
1237 * by calling setTimeout.

Callers 15

refreshTimeoutFunction · 0.70
setTimeoutMethod · 0.70
setHttp2IdleTimeoutFunction · 0.70
#reconnectMethod · 0.70
loadMethod · 0.50
scheduleFunction · 0.50
requestUpdateMethod · 0.50
delayFunction · 0.50
drawChartMethod · 0.50

Calls

no outgoing calls

Tested by 1

testFunction · 0.40

Used in the wild real call sites across dependent graphs

searching dependent graphs…