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

Function cleanUpNextTick

code/third-party/public/app.js:726–739  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

724var queueIndex = -1;
725
726function cleanUpNextTick() {
727 if (!draining || !currentQueue) {
728 return;
729 }
730 draining = false;
731 if (currentQueue.length) {
732 queue = currentQueue.concat(queue);
733 } else {
734 queueIndex = -1;
735 }
736 if (queue.length) {
737 drainQueue();
738 }
739}
740
741function drainQueue() {
742 if (draining) {

Callers

nothing calls this directly

Calls 1

drainQueueFunction · 0.70

Tested by

no test coverage detected