Wednesday, July 25, 2012

On javascript asynchronous callbacks

One of the true beauty of javascript, in my opinion, is the callback we use in asynchronous calls.
Most of the time callbacks are anonymous functions passed as the last parameter to an asynchronous function. We use a lot of callbacks in node.js environment.
However, sometimes it can become a bit confusing when many asynchronous functions need to be called. In this post I'll focus on parallel asynchronous function calls and overall completion callback.