Skip to content

Instantly share code, notes, and snippets.

@aemkei
Created February 9, 2009 09:38
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 aemkei/60731 to your computer and use it in GitHub Desktop.
Save aemkei/60731 to your computer and use it in GitHub Desktop.
function schedule(functions, context){
setTimeout(function(){
var process = functions.shift();
process.call(context);
if (functions.length > 0){
setTimeout(arguments.callee, 100);
}
}, 100);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment