Skip to content

Instantly share code, notes, and snippets.

@adamculpepper
Created October 31, 2019 17:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save adamculpepper/677c98add3693c10880e7369b4b3b0e3 to your computer and use it in GitHub Desktop.
Save adamculpepper/677c98add3693c10880e7369b4b3b0e3 to your computer and use it in GitHub Desktop.
setInterval Data Watcher
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