Skip to content
This repository has been archived by the owner on Dec 12, 2018. It is now read-only.

Add support for promises #452

Open
dotlouis opened this issue Apr 26, 2016 · 2 comments
Open

Add support for promises #452

dotlouis opened this issue Apr 26, 2016 · 2 comments

Comments

@dotlouis
Copy link

dotlouis commented Apr 26, 2016

Now that Node supports Promises by default, it would be great to have them supported.
With a dual callback/promise non-breaking api.
You can either supply a callback, or don't and a promise will be returned.

Thanks

@robertjd
Copy link
Member

Hi @dotlouis , thanks for the request! ES6 support in Node is really exciting :) We will find time in the future to add promises, in the meantime we are going to focus on moving this library to a 1.0 release (as we have to break some of our own APIs).

@deyceg
Copy link

deyceg commented Jun 3, 2016

@dotlouis If you can't wait for a 1.0 release; why not use https://github.com/petkaantonov/bluebird/?

const stormpath = require('stormpath')
const client = new stormpath.Client();

Promise.promisifyAll(client);

client
  .getApplicationAsync(...)
  .then(...)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants