12345678910111213141516171819 |
- var Stack=require('../stack');
- var stack=new Stack;
- stack.autoRun=false;
- for(var i=0; i<50; i++){
-
- stack.add(makeRequest.bind(stack,i));
- }
- stack.next();
- function makeRequest(index){
-
- console.log(`making LIFO request ${index}`);
- this.next();
- }
|