Content with Style

Web Technique

Callback bonanza - linearising asynchronous calls

by Pascal Opitz on November 15 2010, 07:40

I am coding in node.js at the moment, and one thing drives me mad: The constant need to nest or pass callbacks. So I did a little research on some libraries that help.

Two libraries in particular seemed to do what I was looking for: caolan's async and creatonix step. Both provide similar interfaces to end the callback bonanza.

Check out the little experiments on github, that show how those two libraries can be used.