MCPcopy
hub / github.com/webpack/webpack / processQueue

Function processQueue

lib/util/processAsyncTree.js:59–71  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

57 };
58
59 const processQueue = () => {
60 if (finished) return;
61 while (processing < concurrency && queue.length > 0) {
62 processing++;
63 const item = /** @type {T} */ (queue.pop());
64 processor(item, push, processorCallback);
65 }
66 processScheduled = false;
67 if (queue.length === 0 && processing === 0 && !finished) {
68 finished = true;
69 callback();
70 }
71 };
72
73 processQueue();
74};

Callers 1

processAsyncTreeFunction · 0.70

Calls 2

popMethod · 0.80
callbackFunction · 0.50

Tested by

no test coverage detected