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

Rewrite code using promises? #5

Open
snorremd opened this issue Sep 17, 2015 · 0 comments
Open

Rewrite code using promises? #5

snorremd opened this issue Sep 17, 2015 · 0 comments

Comments

@snorremd
Copy link
Member

As of Node 4.0.0 promises are available natively. With the introduction of the security and geo modules, another layer of callbacks have been added to the callback cake. We are bordering on the territory of callback hell.

We should at least consider rewriting the modules to use the promise pattern when a stable version of Node.js 4.1.0 and npm (something) becomes available. It would make the code more manageable.

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

No branches or pull requests

1 participant