Photo - Kobi Li
Photo

Hoverbear

Javascript

Async Auto

I've been exploring the handy async over the last few days in the lab. One of my projects is a MongoDB API Adapter in Node.js and I was pleased by a novel way of handling control flow.

async.auto() is a function offered by the libary which allows you to declare a set of tasks and their dependencies, then the library determines the best way to compose the initialization.

Continue reading...
79c28d5a3d6f1bfddd7af01630d53938cf4858e7