On Monday, October 1, 2012 3:46:19 PM UTC-4, Mariusz Nowak wrote:
>
>
> In Deferred I solved it by making end function with same signature as then:
>
> promise.end(function (value) {
>    // do something with value
> });
>
> If onerror callback is not provided, eventual error will just throw. So no 
> extra (not needed) promise is created and any error either returned by 
> promise or thrown in success handler will be exposed, that's what you 
> should expect.
>

In Q we will be adding this functionality as .done(), so as to better match 
WinJS and (sort of) jQuery. .end() will become deprecated. It'd be cool if 
you wanted to join us in standardizing on that API!

-- 
Job Board: http://jobs.nodejs.org/
Posting guidelines: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to nodejs@googlegroups.com
To unsubscribe from this group, send email to
nodejs+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en

Reply via email to