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

Function cleanUpNextTick

code/composition/public/app.js:991–1004  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

989var queueIndex = -1;
990
991function cleanUpNextTick() {
992 if (!draining || !currentQueue) {
993 return;
994 }
995 draining = false;
996 if (currentQueue.length) {
997 queue = currentQueue.concat(queue);
998 } else {
999 queueIndex = -1;
1000 }
1001 if (queue.length) {
1002 drainQueue();
1003 }
1004}
1005
1006function drainQueue() {
1007 if (draining) {

Callers

nothing calls this directly

Calls 1

drainQueueFunction · 0.70

Tested by

no test coverage detected