Last active
September 15, 2015 19:56
-
-
Save hellboy81/5c7ece5b7a6103ffa762 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var m_secondStep = function m_secondStep(firstStepResult, myFuncParam1) { | |
// Both firstStepResult and myFuncParam1 are available | |
... | |
} | |
mod.myFunc = function (myFuncParam1, ...) { | |
async.waterfall([ | |
function firstStep() { | |
cb(null, firstStepResult) | |
}, | |
// null -> this - ?? | |
m_secondStep.bind(null, myFuncParam1), | |
... | |
]) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
caolan/async#725