Skip to content

Instantly share code, notes, and snippets.

@bcoe
Created May 11, 2014 19:44
Show Gist options
  • Select an option

  • Save bcoe/a554b9ec4217674f0cff to your computer and use it in GitHub Desktop.

Select an option

Save bcoe/a554b9ec4217674f0cff to your computer and use it in GitHub Desktop.
callback-hell.js
a(b, function(err, c) {
// wait for a to finish.
d(c, function(err, e) {
// wait for d to finish.
f(e, function(err, g) {
// do something with the result of f.
})
})
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment