Skip to content

Instantly share code, notes, and snippets.

@mightyguava
Created March 15, 2017 15:33
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 mightyguava/bb2c363ae949f6f9a6f85826f4d1ac68 to your computer and use it in GitHub Desktop.
Save mightyguava/bb2c363ae949f6f9a6f85826f4d1ac68 to your computer and use it in GitHub Desktop.
Demystifying Async Programming in Javascript - Promisify callback hell
getUserData()
.then(getUserData)
.then(doMoreStuff)
.then(getEvenMoreUserData)
.then(doEvenMoreStuff)
.then(getYetMoreUserData)
.then(doYetMoreStuff);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment