Skip to content

Instantly share code, notes, and snippets.

@bcoe
Created May 11, 2014 19:44
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 bcoe/a554b9ec4217674f0cff to your computer and use it in GitHub Desktop.
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