Async.auto() avoids this problem, since you always have access to 'results' hash object that contains results of calculations, and you can access them by name. --------- Boris Egorov skype/gtalk/nickname: dolphin278 mobile: +7 905 728 1543
On Tue, May 29, 2012 at 2:50 AM, Xavi Ramirez <xavi....@gmail.com> wrote: > Aync certainly has everything you'd ever want (and more), but I > personally find the API a bit overwhelming and at times verbose. For > example I dislike having to manually deconstruct an array to get the > results of two callbacks executed in parallell. Because of this, I > tend to use Step: https://github.com/creationix/step/ > > In addition to having a fairly minimal API, it has a solid test suite > and it's been used on million+ visitor/month sites for over a year > without issue. The only real downside is that the original Step been > more less abandoned. Luckily, a number of fork have popped up: > > https://github.com/akidee/stepc > https://github.com/xavi-/two-step > > None of them have been battle test quite as much as the original Step, > but they use the same test suite and are actively being worked on. > > Hope this helps. > > On Mon, May 28, 2012 at 2:04 PM, Jake Verbaten <rayn...@gmail.com> wrote: > > A recent quora answer about flow control patterns might be helpful > > ( > http://www.quora.com/JavaScript/What-are-known-javascript-design-patterns-for-asynchronous-programming/ > ) > > > > It's a personal choice whether you use the primitives directly or > abstract > > them lightly. The main question is "what abstraction is too heavy". I > > personally think half of async is too heavy, promises / deferreds / > futures > > are too heavy, fibers are too heavy, etc. > > > > -- > > 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 > > -- > 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 > -- 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