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

Function cleanUpNextTick

code/dependency-injection/public/app.js:946–959  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

944var queueIndex = -1;
945
946function cleanUpNextTick() {
947 if (!draining || !currentQueue) {
948 return;
949 }
950 draining = false;
951 if (currentQueue.length) {
952 queue = currentQueue.concat(queue);
953 } else {
954 queueIndex = -1;
955 }
956 if (queue.length) {
957 drainQueue();
958 }
959}
960
961function drainQueue() {
962 if (draining) {

Callers

nothing calls this directly

Calls 1

drainQueueFunction · 0.70

Tested by

no test coverage detected