Every line of 'javascript cancel 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.
74 var handleWrapper = new HandleWrapper(setTimeout(function timeoutTimeout() { 75 if (ret.isPending()) { 76 afterTimeout(ret, message, parent); 77 } 78 }, ms));
452 _timeout() { 453 this._cleanupConnect(true); 454 455 if (this.maxTries == -1 || this._tries < this.maxTries) { 456 this._retry(); 457 } else { 458 this._error(ErrorTypes.TimeoutError); 459 } 460 }
245 item._idleTimeoutId = setTimeout(function onTimeout() { 246 if (item._onTimeout) item._onTimeout(); 247 }, msecs);
22 cancel() { 23 clearTimeout(this._id); 24 }
58 public cancel(): void { 59 if (this.timerHandle !== undefined) { 60 window.clearTimeout(this.timerHandle) 61 this.timerHandle = undefined 62 this._isRunning = false 63 } 64 }
119 private onTimeout_():void { 120 this.stopTimer_(); 121 this.removeCallbacks_(); 122 123 this.decoratedTask_.interrupt(); 124 this.errorInternal(this.decoratedTask_.getData(), 'Task timed out after ' + this.timeout_ + 'ms'); 125 }
40 timeout = setTimeout(function onTimeout() { 41 timeout && deferred.reject(new Error('timed out')); 42 }, msec);
36 function cancel() { 37 isCancelled = true; 38 cleanup(); 39 if (opts.onCancel) opts.onCancel(); 40 }
903 function cancel() { 904 clearTimeout(timer); 905 }
154 cancel (timeoutID) { 155 if (timeoutID) { 156 clearTimeout(timeoutID); 157 } 158 159 return this; 160 }