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...
6c3fee57ca834cb9f133106444ebe3bf12a9628e