Skip to content

Instantly share code, notes, and snippets.

@chakrit
Created May 7, 2010 09:13
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 chakrit/393221 to your computer and use it in GitHub Desktop.
Save chakrit/393221 to your computer and use it in GitHub Desktop.
function spawnLs() {
function innerSpawnLs(arg) {
// spawns ls + args, then use callback:
function() {
setTimeout(innerSpawnLs, 0, newArg);
}
}
setTimeout(innerSpawnLs, 0, firstArg);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment