Created
August 6, 2014 14:55
-
-
Save danekja/ce7c782193b4472dbc7b 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
processing = no | |
work = () -> | |
processing = yes | |
doSomeWork (e) -> | |
processing = no | |
if not processing | |
work() | |
else | |
int = setInterval () -> | |
if not processing | |
clearInterval int | |
work() | |
, 200 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment