Created
October 31, 2019 17:46
-
-
Save adamculpepper/677c98add3693c10880e7369b4b3b0e3 to your computer and use it in GitHub Desktop.
setInterval Data Watcher
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
var dataWatcher = setInterval(function() { | |
var dataComplete = false; | |
if (dataCompleteGroups == true && dataCompleteEvents == true) { | |
dataComplete = true; | |
} | |
if (dataComplete) { | |
clearInterval(dataWatcher); | |
// do stuff | |
} | |
}, 100); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment