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

Function flush

libraries/p5.js:125–137  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

123
124var queue = new Array(1000);
125function flush() {
126 for (var i = 0; i < len; i += 2) {
127 var callback = queue[i];
128 var arg = queue[i + 1];
129
130 callback(arg);
131
132 queue[i] = undefined;
133 queue[i + 1] = undefined;
134 }
135
136 len = 0;
137}
138
139function attemptVertx() {
140 try {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected