Fork me on GitHub

is there a best practice for doing something like “fire 2 ajax requests, and fire an event when both complete successfully”? I’m basically looking for something along the lines of promises.all().then(function([resp1, resp2]) { ..... } - would i use the async flow library?


@hoops async-flow will certainly handle that case, although its probably designed for slightly more complicated cases.