Every line of 'es6 settimeout' 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.
474 Stream.prototype.setTimeout = function setTimeout(time) {};
363 setTimeout: function setTimeout(timeout, callback) { 364 console.warn('setTimeout not implemented yet'); 365 },
127 function _setTimeout(fn, ms) { 128 var start = Date.now(); 129 130 process.nextTick(fakeSetTimeout); 131 132 function fakeSetTimeout() { 133 if (Date.now() < start + ms) { 134 process.nextTick(fakeSetTimeout); 135 return; 136 } 137 138 fn(); 139 } 140 }
552 client.setTimeout = function setTimeout(t) { 553 client._queryTimeout = t; 554 };
38 function setTimeout(fn,delay) { 39 return setTimer( 40 /*keepGoing=*/false, 41 /*callback=*/fn, 42 /*interval=*/delay, 43 /*args=*/[].slice.call(arguments,2) 44 ); 45 }
11 this.setTimeout = function setTimeout(func, delay, ...args) { 12 if (typeof delay !== "number" || delay < 0) delay = 0; 13 return timeout_add(PRIORITY_DEFAULT, delay, () => { 14 func.apply(null, args); 15 return false; 16 }); 17 };
58 setTimeout (ms){ 59 this.timeout = ms ; 60 }
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 }
253 value: function setTimeout(handler) { 254 var time = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : { delay: 0 }; 255 256 return this[_setTimer](handler, time); 257 }
43 function setTimeout(func,millis){ 44 var guid = getRandomName(10); 45 Gtlym.CALL["interval_"+guid] = func; 46 return app.scheduleTask('Gtlym.CALL["interval_'+guid+'"]();',millis,false); 47 }