Created
February 22, 2012 16:39
-
-
Save bjoerge/1885939 to your computer and use it in GitHub Desktop.
This is one of the reasons CoffeeScript simply rocks
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
after = (ms, func) -> | |
setTimeout func, ms | |
after 200, -> | |
console.log "200 milliseconds passed" | |
after 400, -> | |
console.log "400 milliseconds passed" | |
after 600, -> | |
console.log "600 milliseconds passed" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Try it here: http://goo.gl/Rbr4s