Skip to content

Instantly share code, notes, and snippets.

@doron2402
Created January 11, 2017 05:45
Show Gist options
  • Save doron2402/670490e3ff826492229fc1cf335767ca to your computer and use it in GitHub Desktop.
Save doron2402/670490e3ff826492229fc1cf335767ca to your computer and use it in GitHub Desktop.
Running promises one after the other
p1.then((result) => {
// do something return something
}).then((result1) => {
// do something return something
}).then((result2) => {
// do something return something
}).catch((error) => {
// if there's an error will catch it here
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment