Deferred is (another) promise solution for Node.js (and JavaScript in general). Originally inspired by Q, however more weight is put on functional capabilities of JavaScript and in result many things are solved differently.
Everything is well documented at https://github.com/medikoo/deferred. It's not that new library, but version that just rolled out (v0.6) in my opinion is ground breaking both in terms of performance and functionalities when compared with other similar solutions. Some of it's advantages in short: - Fastest of all popular promise solutions I know (about 5 times faster than Q, and about 2 times faster than jQuery.Deferred) - Provides convenient way to work with Node.js asynchronous functions, technically when configured, deferred is nearly invisible in your codebase - All needed collection processors - Possibility to limit concurrency on any function basis - Promises are also event emitters, so you can emit progress events or stream results partially as they resolve - Debugging tools that allows to track unresolved promises and/or gather usage statistics .. and many more, best source of information is documentation on github >From my experience if you need to configure really complex asynchronous flow that spans between modules, you need to use some extra abstraction layer on top of callbacks. I found promises as most powerful pattern and with Deferred implementation I haven't yet approached any combination that couldn't be easily solved. npm install deferred Cheers! -- 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 [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/nodejs?hl=en?hl=en
