3 ms·
A great library for structuring your callbacks is "async": https://github.com/caolan/async https://github.com/caolan/async I've only used it with node.js, but
by digisth 14y ago
A great library for structuring your callbacks is "async":
https://github.com/caolan/async https://github.com/caolan/async
I've only used it with node.js, but it's supposed to work in web browsers as well.
It allows you to think a little more procedurally ("waterfall" is especially handy here) while writing CPS code. Very good.