MCPcopy Index your code
hub / github.com/UI5/webcomponents / drainQueue

Function drainQueue

packages/main/test/pages/diffable-html.js:5824–5846  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

5822 }
5823
5824 function drainQueue() {
5825 if (draining) {
5826 return;
5827 }
5828 var timeout = runTimeout(cleanUpNextTick);
5829 draining = true;
5830
5831 var len = queue.length;
5832 while(len) {
5833 currentQueue = queue;
5834 queue = [];
5835 while (++queueIndex < len) {
5836 if (currentQueue) {
5837 currentQueue[queueIndex].run();
5838 }
5839 }
5840 queueIndex = -1;
5841 len = queue.length;
5842 }
5843 currentQueue = null;
5844 draining = false;
5845 runClearTimeout(timeout);
5846 }
5847
5848 process.nextTick = function (fun) {
5849 var args = new Array(arguments.length - 1);

Callers 1

cleanUpNextTickFunction · 0.85

Calls 3

runTimeoutFunction · 0.85
runClearTimeoutFunction · 0.85
runMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…