MCPcopy
hub / github.com/fabien-d/alertify.js / process

Function process

test/qunit/qunit.js:1224–1243  ·  view source on GitHub ↗
( last )

Source from the content-addressed store, hash-verified

1222}
1223
1224function process( last ) {
1225 function next() {
1226 process( last );
1227 }
1228 var start = new Date().getTime();
1229 config.depth = config.depth ? config.depth + 1 : 1;
1230
1231 while ( config.queue.length && !config.blocking ) {
1232 if ( !defined.setTimeout || config.updateRate <= 0 || ( ( new Date().getTime() - start ) < config.updateRate ) ) {
1233 config.queue.shift()();
1234 } else {
1235 window.setTimeout( next, 13 );
1236 break;
1237 }
1238 }
1239 config.depth--;
1240 if ( last && !config.blocking && !config.queue.length && config.depth === 0 ) {
1241 done();
1242 }
1243}
1244
1245function saveGlobal() {
1246 config.pollution = [];

Callers 3

qunit.jsFile · 0.85
synchronizeFunction · 0.85
nextFunction · 0.85

Calls 1

doneFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…