MCPcopy Create free account
hub / github.com/TruthHun/BookStack / cleanUpNextTick

Function cleanUpNextTick

static/word2md/mammoth.browser.js:23958–23971  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

23956var queueIndex = -1;
23957
23958function cleanUpNextTick() {
23959 if (!draining || !currentQueue) {
23960 return;
23961 }
23962 draining = false;
23963 if (currentQueue.length) {
23964 queue = currentQueue.concat(queue);
23965 } else {
23966 queueIndex = -1;
23967 }
23968 if (queue.length) {
23969 drainQueue();
23970 }
23971}
23972
23973function drainQueue() {
23974 if (draining) {

Callers

nothing calls this directly

Calls 1

drainQueueFunction · 0.70

Tested by

no test coverage detected