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

Function spinUntilIdle

benchmark/worker/bench-eventlooputil.js:56–61  ·  view source on GitHub ↗
(w, cb)

Source from the content-addressed store, hash-verified

54}
55
56function spinUntilIdle(w, cb) {
57 const t = w.performance.eventLoopUtilization();
58 if (t.idle + t.active > 0)
59 return process.nextTick(cb);
60 setTimeout(() => spinUntilIdle(w, cb), 1);
61}

Callers 2

benchELUSimpleFunction · 0.85
benchELUPassedFunction · 0.85

Calls 1

setTimeoutFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…