MCPcopy Create free account
hub / github.com/Code-Bullet/Jump-King / cleanUpNextTick

Function cleanUpNextTick

libraries/p5.js:7418–7431  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

7416var queueIndex = -1;
7417
7418function cleanUpNextTick() {
7419 if (!draining || !currentQueue) {
7420 return;
7421 }
7422 draining = false;
7423 if (currentQueue.length) {
7424 queue = currentQueue.concat(queue);
7425 } else {
7426 queueIndex = -1;
7427 }
7428 if (queue.length) {
7429 drainQueue();
7430 }
7431}
7432
7433function drainQueue() {
7434 if (draining) {

Callers

nothing calls this directly

Calls 1

drainQueueFunction · 0.85

Tested by

no test coverage detected