$ Interval function callback
2 answers
if you want to make sure the run function after function b async
will help control it.
async.series([
function(callback){ // function a
// do some stuff ...
callback(null, 'one');
},
function(callback){ // function b
// do some more stuff ...
callback(null, 'two');
}
],
function(err, results){
// results
});
-1
source to share