Skip to content

Instantly share code, notes, and snippets.

@kunigami
Created June 15, 2019 02:06
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 kunigami/6bf3d9388f5377d9da763be4af89af77 to your computer and use it in GitHub Desktop.
Save kunigami/6bf3d9388f5377d9da763be4af89af77 to your computer and use it in GitHub Desktop.
fetchSomeStuff().then(
function (a) {
return fetchSomeStuffDependingOnA(a);
}
).then(
function (b) {
return fetchSomeStuffDependingOnB(b);
}
).then(
function (c) {
/* Code goes on here */
}
).catch(
function (ex) {
handleException(ex);
}
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment