Re:Wait.for: Sequential programming for Node.js (beta)
by gruseom on Friday August 23, 2013 @12:41PM
(#6264668)
Can promises guarantee that condition with only library code? or do you still have to have try/catch in the application code, and if so where?
Also, do any of the promises libraries solve the backtrace problem, and if so how do they do it?
I haven't had too much experience with Domains, but I believe they are generally used for courser grain error handling (because it's a bit verbose to attach them all over the place). E.g., to catch most errors (it's no guarantee what 3p libs do to your context) generated in fulfillment of a particular web request.