Skip to content

Instantly share code, notes, and snippets.

@kopiro
Created July 7, 2011 09:48
Show Gist options
  • Save kopiro/1069205 to your computer and use it in GitHub Desktop.
Save kopiro/1069205 to your computer and use it in GitHub Desktop.
Async FOR in Javascript
afor = function(a, b, c, t, f) {
eval(a);
if (eval(b)) {
f.apply();
eval(c);
setTimeout(function(){ afor(null,b,c,t,f) }, t);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment