Modularizing Async
Async.js is nearing its official 2.0.0 release. The biggest new feature (and frequently requested feature) is modularization. Async has grown significantly from its initial release of 20 or so methods to a large library of over 70 functions that make working with callback-style asynchronous JavaScript easier. If in a small project, you just want async.series
or async.waterfall
, you typically don't want to bring in the entire kitchen sink into your project, especially if building for the browser. It would be convenient if you could require a single method. (e.g. require("async/waterfall")
or similar.) We formulated a plan to make this possible, and in the process learned a lot about the current module landscape for JavaScript.