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

Function cleanUpNextTick

code/higher-order-components/public/app.js:847–860  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

845var queueIndex = -1;
846
847function cleanUpNextTick() {
848 if (!draining || !currentQueue) {
849 return;
850 }
851 draining = false;
852 if (currentQueue.length) {
853 queue = currentQueue.concat(queue);
854 } else {
855 queueIndex = -1;
856 }
857 if (queue.length) {
858 drainQueue();
859 }
860}
861
862function drainQueue() {
863 if (draining) {

Callers

nothing calls this directly

Calls 1

drainQueueFunction · 0.70

Tested by

no test coverage detected