Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Return a promise if no callback specified #40

Merged
merged 3 commits into from
May 15, 2017

Conversation

rjmunro
Copy link
Contributor

@rjmunro rjmunro commented Aug 4, 2016

Assumes native promises are available (or have been polyfilled). If they aren't, then you still need to supply a callback function.

@jergason
Copy link
Owner

I appreciate the PR but I'd rather just stick with good old callbacks. Thanks for the work though!

@jergason jergason closed this Aug 14, 2016
@henrahmagix
Copy link

@jergason I think adding Promises is worthwhile, as it will make life easier for devs who are used to working with them, or who want to avoid using callbacks. Also it's not taking callbacks away, they can still be used.

@neftaly
Copy link

neftaly commented Mar 27, 2017

Not just that, but they're now a language-level feature (async/await).

@neftaly neftaly mentioned this pull request Apr 27, 2017
@jergason
Copy link
Owner

In light of promises becoming more official in node I'm gonna merge this in. Thanks for your work!

@jergason jergason reopened this May 15, 2017
@jergason jergason merged commit 6ee5c98 into jergason:master May 15, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants