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

Function setTimeout

lib/timers.js:115–120  ·  view source on GitHub ↗

* Schedules the execution of a one-time `callback` * after `after` milliseconds. * @param {Function} callback * @param {number} [after] * @param {...any} [args] * @returns {Timeout}

(callback, after, ...args)

Source from the content-addressed store, hash-verified

113 * @returns {Timeout}
114 */
115function setTimeout(callback, after, ...args) {
116 validateFunction(callback, 'callback');
117 const timeout = new Timeout(callback, after, args.length ? args : undefined, false, true);
118 insert(timeout, timeout._idleTimeout);
119 return timeout;
120}
121
122ObjectDefineProperty(setTimeout, customPromisify, {
123 __proto__: null,

Callers 15

internalConnectMultipleFunction · 0.70
execFileFunction · 0.70
spawnFunction · 0.70
mainFunction · 0.50
mainFunction · 0.50
mainFunction · 0.50
childProcessExecStdoutFunction · 0.50
sendFunction · 0.50
mainFunction · 0.50
getServeCallbacksFunction · 0.50
spinUntilIdleFunction · 0.50
mainFunction · 0.50

Calls 1

insertFunction · 0.85

Tested by 7

testFunction · 0.40
testFunction · 0.40
testFunction · 0.40
testFunction · 0.40
testFunction · 0.40
testFunction · 0.40
testFunction · 0.40

Used in the wild real call sites across dependent graphs

searching dependent graphs…