Added a method to attach "Node-style" callbacks as handlers.#150
Added a method to attach "Node-style" callbacks as handlers.#150briancavalier merged 1 commit intocujojs:devfrom
Conversation
|
Ready for review @briancavalier . |
|
Awesome, thanks. Stinks that travis still seems busted :( I should have time tomorrow (EST) to review. |
|
Sorry it took me a while to get back to this. For some reason, github didn't notify me when you updated the PR! |
This makes integrating with callback users easier.
|
@briancavalier Updated. |
|
For posterity, more discussion can be found in these previous revisions: |
|
I pulled and ran the unit tests locally, since Travis still seems busted. Looks great. Thanks for proposing this and working through the details! |
Added a method to attach "Node-style" callbacks as handlers.
|
Hey @Schoonology, I'm wondering if you've been using Thanks! |
|
I have been, and I still like Does that make sense? Thoughts? |
|
Yep, that does make sense. It may also depend on the usage scenario. Going back to your original message, it seems like one primary use case is creating "combo" APIs that both accept a nodeback and return a promise. Like you said, since the nodeback is by convention the last param, it makes sense to provide a parallel to that. It also means that Thanks again! |
TL;DR: This makes integrating with callback users easier.
See #149 for more discussion.