Answers for "break loop timeout javascript"

0

break loop timeout javascript

var keepCalling = true;

setTimeout(function () {
  keepCalling = false;
}, 10000);

while ( keepCalling ) {
  // do something
}
Posted by: Guest on February-15-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language