First Commit of new way of building the Platform
This commit is contained in:
1 parent
e48cf0dae5
commit
40e60b42cc
4616 files changed
+713402
No files matched your search
+18
@@ -0,0 +1,18 @@
|
||||
var Stack=require('../stack');
|
||||
//create a new Stack instance
|
||||
var stack=new Stack;
|
||||
stack.autoRun=false;
|
||||
|
||||
for(var i=0; i<50; i++){
|
||||
//add a bunch of stuff to the stack
|
||||
stack.add(makeRequest.bind(stack,i));
|
||||
}
|
||||
|
||||
stack.next();
|
||||
|
||||
function makeRequest(index){
|
||||
//do stuff
|
||||
console.log(`making LIFO request ${index}`);
|
||||
|
||||
this.next();
|
||||
}
|
||||
Reference in new issue
Block a user