showing results for - "break loop after time javascript"
Silvia
18 Oct 2019
1var keepCalling = true;
2
3setTimeout(function () {
4  keepCalling = false;
5}, 10000);
6
7while ( keepCalling ) {
8  // do something
9}