Created
July 17, 2020 18:08
-
-
Save alexgodin/d12ca0e1b4339d94e48c660b689e8f3e 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
var interval = null | |
let get_message_counts = () => { | |
console.log(inflight_polling_toggle.value) | |
if(!inflight_polling_toggle.value){ | |
console.log("EXITING") | |
clearInterval(interval) | |
} | |
} | |
interval = setInterval(get_message_counts, 3000) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment