Skip to content

Instantly share code, notes, and snippets.

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 mdlavin/373bf7470e3f342a91ab94d7c9f55d29 to your computer and use it in GitHub Desktop.
Save mdlavin/373bf7470e3f342a91ab94d7c9f55d29 to your computer and use it in GitHub Desktop.
An example application that terminates without error earlier than expected
function someAsyncFunction () {
return new Promise(function () {
// This is a bad promise that never resolves
});
}
someAsyncFunction()
.then(function () {
console.log('Done');
})
.catch(function (e) {
console.log('Error');
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment