MCPcopy
hub / github.com/microsoft/SandDance / cleanUpNextTick

Function cleanUpNextTick

docs/app/js/sanddance-app.js:52765–52771  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

52763var currentQueue;
52764var queueIndex = -1;
52765function cleanUpNextTick() {
52766 if (!draining || !currentQueue) return;
52767 draining = false;
52768 if (currentQueue.length) queue = currentQueue.concat(queue);
52769 else queueIndex = -1;
52770 if (queue.length) drainQueue();
52771}
52772function drainQueue() {
52773 if (draining) return;
52774 var timeout = runTimeout(cleanUpNextTick);

Callers

nothing calls this directly

Calls 1

drainQueueFunction · 0.70

Tested by

no test coverage detected