Skip to content

Instantly share code, notes, and snippets.

@troufster
Created September 30, 2010 14:08
Show Gist options
  • Save troufster/604620 to your computer and use it in GitHub Desktop.
Save troufster/604620 to your computer and use it in GitHub Desktop.
function eat() {
var q = _queue.pop(), l = _queue.length;
if (q === undefined) {
sys.debug("Nothing to eat :(");
}
else {
doWork(q);
}
if (l != 0) eat();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment