170
rated 0 times
[
177]
[
7]
/ answers: 1 / hits: 9517
/ 11 Years ago, wed, january 22, 2014, 12:00:00
I need to do the code like following:
function taskFirst(k, v) {
console.log(k, v);
}
function taskSecond(k, v) {
console.log(k, v);
}
function run() {
var g1 = Something;
var g2 = Something;
var g3 = Something;
var g4 = Something;
async.series(
[
taskFirst(g1, g2),
taskSecond(g3, g4)
],
function(error, result){
}
);
}
What is the right way to pass custom variables and async.js callback function?
More From » node.js