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

Function cleanUpNextTick

code/redux/public/app.js:1104–1117  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1102var queueIndex = -1;
1103
1104function cleanUpNextTick() {
1105 if (!draining || !currentQueue) {
1106 return;
1107 }
1108 draining = false;
1109 if (currentQueue.length) {
1110 queue = currentQueue.concat(queue);
1111 } else {
1112 queueIndex = -1;
1113 }
1114 if (queue.length) {
1115 drainQueue();
1116 }
1117}
1118
1119function drainQueue() {
1120 if (draining) {

Callers

nothing calls this directly

Calls 1

drainQueueFunction · 0.70

Tested by

no test coverage detected