Home
last modified time | relevance | path

Searched refs:setTimeout (Results 1 – 25 of 691) sorted by relevance

12345678910>>...28

/third_party/node/test/parallel/
Dtest-timers-promisified.js13 const setTimeout = promisify(timers.setTimeout); constant
19 const promise = setTimeout(1);
26 const promise = setTimeout(1, 'foobar');
49 assert.rejects(setTimeout(10, undefined, { signal }), /AbortError/);
57 assert.rejects(setTimeout(10, undefined, { signal }), /AbortError/);
78 setTimeout(10, undefined, { signal }).then(() => {
95 setTimeout(0, null, { signal }).finally(common.mustCall(() => {
123 (i) => assert.rejects(setTimeout(10, null, i)), {
129 (signal) => assert.rejects(setTimeout(10, null, { signal })), {
135 (ref) => assert.rejects(setTimeout(10, null, { ref })), {
Dtest-http2-timeouts.js13 stream.setTimeout(1, common.mustCall(() => {
20 () => stream.setTimeout('100'),
30 () => stream.setTimeout(0, Symbol('test')),
38 () => stream.setTimeout(100, {}),
50 client.setTimeout(1, common.mustCall(() => {
52 req.setTimeout(1, common.mustCall(() => {
Dtest-timers-refresh.js20 const timer = setTimeout(common.mustCall(() => {
27 setTimeout(common.mustCall(() => {
64 const timer = setTimeout(common.mustCall(() => {
68 setTimeout(common.mustCall(() => {
78 const timer = setTimeout(common.mustCall(() => {
99 setTimeout(common.mustCall(() => {
Dtest-timers-non-integer-delay.js53 setTimeout(common.mustCall(() => {
57 setTimeout(common.mustCall(() => {
61 setTimeout(common.mustCall(() => {
65 setTimeout(common.mustCall(() => {
69 setTimeout(common.mustCall(() => {
Dtest-net-socket-timeout.js42 s.setTimeout(nonNumericDelays[i], () => {});
48 s.setTimeout(badRangeDelays[i], () => {});
53 s.setTimeout(validDelays[i], () => {});
59 () => s.setTimeout(mesc, invalidCallbacks[i]),
74 socket.setTimeout(1, common.mustCall(() => {
76 assert.strictEqual(socket.setTimeout(1, common.mustNotCall()), socket);
Dtest-timers-user-call.js14 setTimeout(fn, 1);
15 setTimeout(fn, 1, 'oneArg');
16 setTimeout(fn, 1, 'two', 'args');
17 setTimeout(fn, 1, 'three', '(3)', 'args');
18 setTimeout(fn, 1, 'more', 'than', 'three', 'args');
Dtest-http-outgoing-settimeout.js12 setTimeout: common.mustCall((msecs) => { property
16 outgoingMessage.setTimeout(expectedMsecs);
23 outgoingMessage.setTimeout(expectedMsecs);
26 setTimeout: common.mustCall((msecs) => { property
Dtest-timers-next-tick.js10 setTimeout(common.mustCall(() => {
17 const t2 = setTimeout(common.mustNotCall(), 1);
18 const t3 = setTimeout(common.mustNotCall(), 1);
19 setTimeout(common.mustCall(), 1);
Dtest-timers-unref.js35 const timer = setTimeout(() => {}, 10);
44 setTimeout(common.mustNotCall('Timer should not fire'), LONG_TIME).unref();
52 setTimeout(common.mustCall(() => {
64 setTimeout(common.mustCall(() => {
Dtest-http-set-timeout-server.js47 const s = server.setTimeout(50, common.mustCall((socket) => {
62 const s = req.setTimeout(50, common.mustCall((socket) => {
83 const s = res.setTimeout(50, common.mustCall((socket) => {
100 const s = req.setTimeout(50, common.mustNotCall());
129 const s = res.setTimeout(50, () => {
157 const s = server.setTimeout(50, common.mustCall((socket) => {
199 const s = server.setTimeout(1, common.mustCall((socket) => {
Dtest-promises-unhandled-rejections.js35 setTimeout(nextAsyncTest, 10);
64 setTimeout(nextAsyncTest, 10);
107 setTimeout(function() {
152 setTimeout(function() {
208 setTimeout(function() {
227 setTimeout(function() {
307 setTimeout(function() {
349 setTimeout(function() {
439 setTimeout(function() {
491 setTimeout(function() {
[all …]
/third_party/typescript_eslint/packages/eslint-plugin/docs/rules/
Dno-implied-eval.md5 The first is using `setTimeout()`, `setInterval()`, `setImmediate` or `execScript()` (Internet Expl…
8 setTimeout('alert(`Hi!`);', 100);
20 …or `execScript()` and always use a function for the first argument of `setTimeout()`, `setInterval…
24 This rule aims to eliminate implied `eval()` through the use of `new Function()`, `setTimeout()`, `…
31 setTimeout('alert(`Hi!`);', 100);
39 window.setTimeout('count = 5', 10);
44 setTimeout(fn, 100);
49 setTimeout(fn(), 100);
59 setTimeout(function () {
76 setTimeout(fn, 100);
[all …]
/third_party/node/test/pummel/
Dtest-timers.js32 setTimeout(common.mustCall(function() {
45 const id = setTimeout(common.mustNotCall(), 500);
75 setTimeout(function(param) {
94 setTimeout(function(param1, param2) {
124 setTimeout(t, 200);
125 setTimeout(t, 200);
126 const y = setTimeout(t, 200);
129 setTimeout(t, 200);
Dtest-net-pause.js37 setTimeout(() => {
53 setTimeout(() => {
58 setTimeout(() => {
63 setTimeout(() => {
68 setTimeout(() => {
Dtest-fs-watch-file.js70 setTimeout(function() {
98 setTimeout(function() {
113 setTimeout(function() {
117 setTimeout(function() {
121 setTimeout(function() {
/third_party/typescript/tests/baselines/reference/
DfatarrowfunctionsInFunctions.types2 declare function setTimeout(expression: any, msec?: number, language?: any): number;
3 >setTimeout : { (handler: TimerHandler, timeout?: number, ...arguments: any[]): number; (expression…
10 >{ message: "Hello World", start: function() { var _self = this; setTimeout(fun…
18 >function() { var _self = this; setTimeout(function() { _self.message.toSt…
24 setTimeout(function() {
25 >setTimeout(function() { _self.message.toString(); }, 3000) : number
26 >setTimeout : { (handler: TimerHandler, timeout?: number, ...arguments: any[]): number; (expression…
DrecursiveNamedLambdaCall.types4 … ) { try { top.doScroll("left"); } catch(e) { return setTimeout( doScrollCheck, …
15 … ) { try { top.doScroll("left"); } catch(e) { return setTimeout( doScrollCheck, …
16 … ) { try { top.doScroll("left"); } catch(e) { return setTimeout( doScrollCheck, …
17 … ) { try { top.doScroll("left"); } catch(e) { return setTimeout( doScrollCheck, …
34 return setTimeout( doScrollCheck, 50 );
35 >setTimeout( doScrollCheck, 50 ) : any
36 >setTimeout : any
DfatarrowfunctionsInFunctions.symbols2 declare function setTimeout(expression: any, msec?: number, language?: any): number;
3 >setTimeout : Symbol(setTimeout, Decl(lib.dom.d.ts, --, --), Decl(fatarrowfunctionsInFunctions.ts, …
20 setTimeout(function() {
21 >setTimeout : Symbol(setTimeout, Decl(lib.dom.d.ts, --, --), Decl(fatarrowfunctionsInFunctions.ts, …
DthisBinding2.types48 declare function setTimeout(expression: any, msec?: number, language?: any): number;
49 >setTimeout : { (handler: TimerHandler, timeout?: number, ...arguments: any[]): number; (expression…
56 >{ message: "Hello World", start: function () { return setTimeout(() => { var x = this…
64 >function () { return setTimeout(() => { var x = this.message; }, 3000); } : () => number
66 return setTimeout(() => { var x = this.message; }, 3000);
67 >setTimeout(() => { var x = this.message; }, 3000) : number
68 >setTimeout : { (handler: TimerHandler, timeout?: number, ...arguments: any[]): number; (expression…
DcontextuallyTypeArgumentsKeyword.types5 >{ bar() { setTimeout(function() { arguments }, 0); }} : { bar(): void; }
10 setTimeout(function() { arguments }, 0);
11 >setTimeout(function() { arguments }, 0) : number
12 >setTimeout : (handler: TimerHandler, timeout?: number, ...arguments: any[]) => number
DthisBinding2.symbols35 declare function setTimeout(expression: any, msec?: number, language?: any): number;
36 >setTimeout : Symbol(setTimeout, Decl(lib.dom.d.ts, --, --), Decl(thisBinding2.ts, 12, 1))
50 return setTimeout(() => { var x = this.message; }, 3000);
51 >setTimeout : Symbol(setTimeout, Decl(lib.dom.d.ts, --, --), Decl(thisBinding2.ts, 12, 1))
/third_party/node/deps/npm/node_modules/util-promisify/test/
Dtimers.js9 const setTimeout = promisify(timers.setTimeout); constant
13 const promise = setTimeout(1);
20 const promise = setTimeout(1, 'foobar');
/third_party/node/benchmark/timers/
Dtimers-breadth-args.js37 setTimeout(cb4, 1, 3.14, 1024, true, false);
39 setTimeout(cb3, 1, 512, true, null);
41 setTimeout(cb2, 1, false, 5.1);
43 setTimeout(cb1, 1, 0);
/third_party/node/test/async-hooks/
Dtest-async-local-storage-no-mix-contexts.js9 setTimeout(() => {
16 setTimeout(() => {
30 setTimeout(() => {
34 setTimeout(() => {
/third_party/jerryscript/targets/mbedos5/jerryscript-mbed/jerryscript-mbed-drivers/source/
DsetTimeout-js.cpp26 DECLARE_GLOBAL_FUNCTION(setTimeout) { in DECLARE_GLOBAL_FUNCTION() argument
27 CHECK_ARGUMENT_COUNT(global, setTimeout, (args_count == 2)); in DECLARE_GLOBAL_FUNCTION()
28 CHECK_ARGUMENT_TYPE_ALWAYS(global, setTimeout, 0, function); in DECLARE_GLOBAL_FUNCTION()
29 CHECK_ARGUMENT_TYPE_ALWAYS(global, setTimeout, 1, number); in DECLARE_GLOBAL_FUNCTION()

12345678910>>...28