-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Document how to turn callbacks into promises using bluebird #606
Comments
Ditto. I almost exclusively use promises now. |
I'm not a promise user myself, but if you were to write up a blog post or detailed gist on how this library works when using promises (Especially if it demonstrates more than just one Promises implementation) I would be happy to link it from the Readme! |
Sure I would be happy to do that. Also, have you considered making node_redis compatible with the Promise.promisifyAll function on Bluebird? https://github.com/petkaantonov/bluebird/blob/master/API.md#promisepromisifyallobject-target--object-options---object Zachary Nevin |
I've been using bluebird with no issues (see original comment), though I've only used about 10 methods or so. What's not compatible? |
I probably just did something wrong. I got the "doesn't have a method 'then' "error. Zachary Nevin
|
Are you using 2.x? In 1.x you have to Promise.promisifyAll(require("redis")); |
Yeah it works for me now. |
Do you have an example on how to use the multi as promises? |
For multi only See the very last paragraph. |
In order to better support this project and its new group of collaborators under a new org we are trying to clean up and close issues older than 6 months. Your issue may have been fixed since the issue was open, however, if you are still experiencing a problem please re-open this issue and we will label it accordingly. |
Reference #864 |
Many may find this
bluebird
feature useful if they're looking for a redis library that supports promises or manually turning callbacks into promises:More details
https://github.com/petkaantonov/bluebird/blob/master/API.md#promisification
The text was updated successfully, but these errors were encountered: