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

Function cleanUpNextTick

code/communication/public/app.js:888–901  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

886var queueIndex = -1;
887
888function cleanUpNextTick() {
889 if (!draining || !currentQueue) {
890 return;
891 }
892 draining = false;
893 if (currentQueue.length) {
894 queue = currentQueue.concat(queue);
895 } else {
896 queueIndex = -1;
897 }
898 if (queue.length) {
899 drainQueue();
900 }
901}
902
903function drainQueue() {
904 if (draining) {

Callers

nothing calls this directly

Calls 1

drainQueueFunction · 0.70

Tested by

no test coverage detected