Skip to content

Instantly share code, notes, and snippets.

@Raynos
Created November 20, 2011 23:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Raynos/1381146 to your computer and use it in GitHub Desktop.
Save Raynos/1381146 to your computer and use it in GitHub Desktop.
var count = 3;
function next() {
count--;
if (count === 0) {
// continue
}
}
doAjax("do", next);
doMoreAjax("it", next);
MOARAJAX("parallel", next);
var next = after(3, function _next() {
// continue
});
doAjax("do", next);
doMoreAjax("it", next);
MOARAJAX("parallel", next);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment