Created
December 12, 2013 01:28
-
-
Save Polyrhythm/7921780 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
counterVal = 4 | |
tick() -> | |
if counterVal !== 1 | |
# logic each countdown tick | |
counterVal-- | |
setTimeout tick, 1000 | |
else | |
# breaking case - callback on countdown completion | |
console.log 'all finished, fucknuts' | |
tick() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment