MCPcopy
hub / github.com/dataarts/dat.gui / process

Function process

tests/qunit.js:925–943  ·  view source on GitHub ↗
( last )

Source from the content-addressed store, hash-verified

923}
924
925function process( last ) {
926 var start = new Date().getTime();
927 config.depth = config.depth ? config.depth + 1 : 1;
928
929 while ( config.queue.length && !config.blocking ) {
930 if ( !defined.setTimeout || config.updateRate <= 0 || ( ( new Date().getTime() - start ) < config.updateRate ) ) {
931 config.queue.shift()();
932 } else {
933 window.setTimeout( function(){
934 process( last );
935 }, 13 );
936 break;
937 }
938 }
939 config.depth--;
940 if ( last && !config.blocking && !config.queue.length && config.depth === 0 ) {
941 done();
942 }
943}
944
945function saveGlobal() {
946 config.pollution = [];

Callers 2

qunit.jsFile · 0.85
synchronizeFunction · 0.85

Calls 1

doneFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…