Skip to content

Instantly share code, notes, and snippets.

@chapel
Created June 5, 2013 17:47
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 chapel/5715783 to your computer and use it in GitHub Desktop.
Save chapel/5715783 to your computer and use it in GitHub Desktop.
async(1, cb)
function cb(err, res) {
if (err) return done(err)
async2(res.blah, cb2)
}
function cb2(err, res) {
if (err) return done(err)
async3(res.foo, cb3)
}
function cb3(err, res) {
done(err)
}
function done(err) {
// blah
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment