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

Function timeout

test/parallel/test-timers-args.js:9–17  ·  view source on GitHub ↗
(nargs)

Source from the content-addressed store, hash-verified

7}
8
9function timeout(nargs) {
10 const args = range(nargs);
11 setTimeout.apply(null, [callback, 1].concat(args));
12
13 function callback() {
14 assert.deepStrictEqual([].slice.call(arguments), args);
15 if (nargs < 128) timeout(nargs + 1);
16 }
17}
18
19function interval(nargs) {
20 const args = range(nargs);

Callers 2

callbackFunction · 0.70

Calls 3

concatMethod · 0.80
rangeFunction · 0.70
applyMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…