Skip to content

Instantly share code, notes, and snippets.

@alsciende
Created June 17, 2016 10:28
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 alsciende/832afece6780cabb93e4cdaadfc064fd to your computer and use it in GitHub Desktop.
Save alsciende/832afece6780cabb93e4cdaadfc064fd to your computer and use it in GitHub Desktop.
function doTwoThings() {
return new Promise(function (resolve, reject) {
doSomething()
.then(doSomethingElse)
.then(resolve, reject)
})
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment