Every line of 'timeout jquery' code snippets is scanned for vulnerabilities by our powerful machine learning engine that combs millions of open source libraries, ensuring your JavaScript code is secure.
4 public async wait(time: number) { 5 setTimeout( 6 () => new Promise((resolve) => { 7 resolve() 8 }), time) 9 }
58 setTimeout (ms){ 59 this.timeout = ms ; 60 }
74 var handleWrapper = new HandleWrapper(setTimeout(function timeoutTimeout() { 75 if (ret.isPending()) { 76 afterTimeout(ret, message, parent); 77 } 78 }, ms));
23 function _createTimeout (fn, data, delay) { 24 window.setTimeout(function () { fn.call(null, data); }, delay) 25 }
568 function _setTimeout(funktion, delay) 569 { 570 return setTimeout(function() 571 { 572 try 573 { 574 funktion(); 575 } 576 catch (x) 577 { 578 _debug('Exception during scheduled execution of function \'{}\': {}', funktion.name, x); 579 } 580 }, delay); 581 };
319 function timeout(callback, durationInMilliSec) { 320 if (durationInMilliSec > 100) { 321 // U.p( 'waiting for 100 msec from ' + durationInMilliSec + ' msec' ); 322 durationInMilliSec -= 100; 323 setTimeout(timeout, 100, callback, durationInMilliSec); 324 } else { 325 // U.p( 'waiting for ' + durationInMilliSec + ' msec' ); 326 setTimeout(callback, durationInMilliSec); 327 } 328 }
97 function ajaxTimeout(){ 98 console.log("Request aborted"); 99 req.abort(); 100 window.clearInterval(xmlHttpTimeout); 101 }
33 _setTimeout(callback, time) { 34 this._timer = setTimeout(() => { 35 callback() 36 this._finish = true 37 this._rest = null 38 }, time / this._rate) 39 40 this._finish = false 41 this._time = time 42 this._startTime = new Date() 43 this._callback = callback 44 this._rest = null 45 }
38 function setTimeout(_timeout) { 39 timeout = _timeout; 40 }
19 function executeOnInactive(onTimeout, timeoutInMs) { 20 var t; 21 window.onload = resetTimer; 22 document.onmousemove = resetTimer; 23 document.onkeypress = resetTimer; 24 25 function resetTimer() { 26 clearTimeout(t); 27 t = setTimeout(onTimeout, timeoutInMs) 28 } 29 }