Skip to content

Instantly share code, notes, and snippets.

@noopkat
Forked from whitfin/promises_for_noopkat.js
Created April 16, 2017 16:42
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 noopkat/aa0dde8991394849fed51ea19d9ca42d to your computer and use it in GitHub Desktop.
Save noopkat/aa0dde8991394849fed51ea19d9ca42d 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();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment