Skip to content

Instantly share code, notes, and snippets.

@hellboy81
Last active September 15, 2015 19:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hellboy81/5c7ece5b7a6103ffa762 to your computer and use it in GitHub Desktop.
Save hellboy81/5c7ece5b7a6103ffa762 to your computer and use it in GitHub Desktop.
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),
...
])
}
@hellboy81
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment