Every line of 'jquery timeout' 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.
58 setTimeout (ms){ 59 this.timeout = ms ; 60 }
23 function _createTimeout (fn, data, delay) { 24 window.setTimeout(function () { fn.call(null, data); }, delay) 25 }
38 function setTimeout(_timeout) { 39 timeout = _timeout; 40 }
97 function ajaxTimeout(){ 98 console.log("Request aborted"); 99 req.abort(); 100 window.clearInterval(xmlHttpTimeout); 101 }
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 };
4 public async wait(time: number) { 5 setTimeout( 6 () => new Promise((resolve) => { 7 resolve() 8 }), time) 9 }
29 export function setTimeout(f: Function, time: number, ...args: any[]) { 30 if (time === 0) { 31 f(args); 32 return -1; 33 } else { 34 return window.setTimeout(f, time, args); 35 } 36 }
74 var handleWrapper = new HandleWrapper(setTimeout(function timeoutTimeout() { 75 if (ret.isPending()) { 76 afterTimeout(ret, message, parent); 77 } 78 }, ms));
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 }
4 function timeout(fn, delay) { 5 return new Promise((resolve, reject) => { 6 setTimeout(() => { 7 try { 8 fn(); 9 resolve(); 10 } catch (err) { 11 reject(err); 12 } 13 }, delay); 14 }); 15 }