sample skeleton application with dojo toolkit & arcgis js api v 4.30
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

23 lines
294 B

define([], function(){
var
count = 0,
max = 10,
queue = [];
return {
release:function(){
if(queue.length){
(queue.shift())();
}else{
count--;
}
},
enqueue:function(proc){
if(count<max){
count++;
proc();
}else{
queue.push(proc);
}
}
};
});