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

Function clear

benchmark/timers/immediate.js:103–114  ·  view source on GitHub ↗
(N)

Source from the content-addressed store, hash-verified

101}
102
103function clear(N) {
104 N *= 4;
105 bench.start();
106 function cb(a1) {
107 if (a1 === 2)
108 bench.end(N);
109 }
110 for (let i = 0; i < N; i++) {
111 clearImmediate(setImmediate(cb, 1));
112 }
113 setImmediate(cb, 2);
114}

Callers 1

mainFunction · 0.70

Calls 3

clearImmediateFunction · 0.85
setImmediateFunction · 0.50
startMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…