MCPcopy Create free account
hub / github.com/krasimir/react-in-patterns / cleanUpNextTick

Function cleanUpNextTick

code/new-context-api/public/app.js:854–867  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

852var queueIndex = -1;
853
854function cleanUpNextTick() {
855 if (!draining || !currentQueue) {
856 return;
857 }
858 draining = false;
859 if (currentQueue.length) {
860 queue = currentQueue.concat(queue);
861 } else {
862 queueIndex = -1;
863 }
864 if (queue.length) {
865 drainQueue();
866 }
867}
868
869function drainQueue() {
870 if (draining) {

Callers

nothing calls this directly

Calls 1

drainQueueFunction · 0.70

Tested by

no test coverage detected