Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save ajhekman/8341240 to your computer and use it in GitHub Desktop.
Save ajhekman/8341240 to your computer and use it in GitHub Desktop.
// Here success1, success2, and success21 are functions defined elsewhere
var promise = yourAsyncTask()
promise.then(success1)
promiseTwo = promise.then(success2)
promiseTwo.then(success21)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment