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
Consider using Promise#nodeify in JS drivers #2973
Comments
/cc @neumino. What do you think? |
I actually used |
+1 |
Part of this issue will be to bump blubird to 2.x |
Totally did not notice we weren't on 2.x :) |
@neumino Also consider dropping the use of From Bluebird API doc:
Also refer to the deferred anti-pattern. Suggestions:
|
The idea behind For example, you could call |
@neumino I understand the use of |
Oh, thanks @pilwon -- I didn't pay attention to the big I'm not a big fan of wrapping a method of a CoffeeScript class with |
Merged in next as dbae9bd |
From IRC:
I've also been thinking about this for a while. I believe
nodeify()
would simply things in that span, and similar spans of the JS driver.nodeify()
is cool and also provides an easy way to support the callback interface while usingPromise.using()
for a possible connection pool implementation (#281 (comment)).The text was updated successfully, but these errors were encountered: