Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save qustosh/5952468 to your computer and use it in GitHub Desktop.
Save qustosh/5952468 to your computer and use it in GitHub Desktop.
function withDelay(delay, tasks){
var iterator = -1;
setTimeout( function(){
Iterator++;
tasks[iterator]();
setTimeout(arguments.callee, delay);
} ,delay)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment