Skip to content

Instantly share code, notes, and snippets.

@whitfin
Last active April 16, 2017 16:43
Show Gist options
  • Save whitfin/9ad07fadd8f42a0100db51f96b0087f2 to your computer and use it in GitHub Desktop.
Save whitfin/9ad07fadd8f42a0100db51f96b0087f2 to your computer and use it in GitHub Desktop.
client
.refresh()
.then(function () {
return client.get(); // return your promise
})
.then(function (result) {
// result is the return of client.get()
})
.catch(function (err) {
// common handler for any broken promise now
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment