MCPcopy
hub / github.com/webpack/webpack / dequeue

Method dequeue

lib/util/Queue.js:47–52  ·  view source on GitHub ↗

* Removes and returns the oldest enqueued item. * @returns {T | undefined} The head of the queue of `undefined` if this queue is empty.

()

Source from the content-addressed store, hash-verified

45 * @returns {T | undefined} The head of the queue of `undefined` if this queue is empty.
46 */
47 dequeue() {
48 const result = this._set[Symbol.iterator]().next();
49 if (result.done) return;
50 this._set.delete(result.value);
51 return result.value;
52 }
53}
54
55module.exports = Queue;

Callers 4

applyMethod · 0.95
processQueueWorkerMethod · 0.45
_ensureProcessingMethod · 0.45
Queue.unittest.jsFile · 0.45

Calls 2

nextMethod · 0.45
deleteMethod · 0.45

Tested by

no test coverage detected