Untitled

mail@pastecode.io avatar
unknown
javascript
19 days ago
343 B
1
Indexable
Never
asyncOne(params1, (err, data1, cb) => { 
    var done = 0;
    asyncTwo(params2, (err, data2) => { 
      done++; 
    }); 
    asyncThree(params3, (err, data3) => { 
      done++; 
    }); 
    asyncFour(params4, (err, data4) => {
      done++;
      asyncFive(params5, (err, data5) => {
        if (done >= 2) cb(); 
      });
    }); 
  });
Leave a Comment