Answers for "how to break out of setinterval"

6

setinterval break

var refreshIntervalId = setInterval(fname, 10000);

/* later */
clearInterval(refreshIntervalId);
Posted by: Guest on June-20-2020
0

how to break out of setinterval

var timerId = setInterval(function(){

       if(window.document.drops.isFinished()){
           clearInterval(timerId);
       }

    },1000);
Posted by: Guest on February-16-2021

Code answers related to "how to break out of setinterval"

Code answers related to "TypeScript"

Browse Popular Code Answers by Language