Skip to content

Instantly share code, notes, and snippets.

@balinterdi
Created October 18, 2011 23:03
Show Gist options
  • Save balinterdi/1297018 to your computer and use it in GitHub Desktop.
Save balinterdi/1297018 to your computer and use it in GitHub Desktop.
Event loop
countdown = 10
h = setInterval ->
countdown--
if countdown is 0
console.log 'Surprise'
clearInterval h
, 100
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment