Skip to content

Instantly share code, notes, and snippets.

@samstokes
Created August 17, 2011 22:22
Show Gist options
  • Save samstokes/1152797 to your computer and use it in GitHub Desktop.
Save samstokes/1152797 to your computer and use it in GitHub Desktop.
Example of scheduling code loggily
// no annotation
setTimeout(function () { /* something that blows up horribly */ }, 1000);
// annotated, behaves identically unless it blows up
setTimeout(loggily("doing something hairy", function () { /* something that blows up horribly */ }), 1000);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment