/third_party/node/test/parallel/ |
D | test-abortsignal-any.mjs | 6 describe('AbortSignal.any()', { concurrency: true }, () => { 9 assert.throws(() => AbortSignal.any(), expectedError); 10 assert.throws(() => AbortSignal.any(null), expectedError); 11 assert.throws(() => AbortSignal.any(undefined), expectedError); 16 () => AbortSignal.any([AbortSignal.abort(), undefined]), 19 message: 'The "signals[1]" argument must be an instance of AbortSignal. Received undefined' 25 const signal = AbortSignal.any([]); 32 const signalAny = AbortSignal.any([originalSignal]); 37 const signal = AbortSignal.any([AbortSignal.abort('some reason')]); 44 …const signal = AbortSignal.any([AbortSignal.abort('some reason'), AbortSignal.abort('another reaso… [all …]
|
D | test-abortcontroller.js | 83 const signal = AbortSignal.abort(); 123 AbortSignal.prototype, 137 Object.create(AbortSignal.prototype), 164 const signal = AbortSignal.abort('reason'); 170 const signal = AbortSignal.timeout(10); 185 ref = new globalThis.WeakRef(AbortSignal.timeout(1_200_000)); 199 ref = new globalThis.WeakRef(AbortSignal.timeout(1_200_000)); 206 ok(ref.deref() instanceof AbortSignal); 220 ref = new globalThis.WeakRef(AbortSignal.timeout(1_200_000)); 231 AbortSignal.timeout(1_200_000); [all …]
|
D | test-child-process-exec-abortcontroller-promisified.js | 65 const signal = AbortSignal.abort(); // Abort in advance 74 const signal = AbortSignal.abort(err); // Abort in advance 82 const signal = AbortSignal.abort('boom'); // Abort in advance
|
D | test-child-process-fork-abort-signal.js | 46 const signal = AbortSignal.abort(); 61 const signal = AbortSignal.abort(new Error('boom')); 78 const signal = AbortSignal.abort();
|
D | test-child-process-spawn-controller.js | 74 const signal = AbortSignal.abort(); 92 const signal = AbortSignal.abort(new Error('boom')); 109 const signal = AbortSignal.abort('boom');
|
D | test-abortsignal-cloneable.js | 62 const signal = transferableAbortSignal(AbortSignal.abort('boom')); 67 ok(data instanceof AbortSignal);
|
D | test-stream-asIndexedPairs.mjs | 34 // AbortSignal 44 const signal = AbortSignal.abort();
|
D | test-timers-immediate-promisified.js | 44 const signal = AbortSignal.abort(); // Abort in advance 102 const signal = AbortSignal.abort('boom');
|
D | test-timers-timeout-promisified.js | 44 const signal = AbortSignal.abort(); // Abort in advance 102 const signal = AbortSignal.abort('boom');
|
/third_party/node/deps/npm/node_modules/abort-controller/dist/ |
D | abort-controller.mjs | 11 class AbortSignal extends EventTarget { class 13 * AbortSignal cannot be constructed directly. 17 throw new TypeError("AbortSignal cannot be constructed directly"); 20 …* Returns `true` if this `AbortSignal`'s `AbortController` has signaled to abort, and `false` othe… 25 …throw new TypeError(`Expected 'this' to be an 'AbortSignal' object, but got ${this === null ? "nul… 30 defineEventAttribute(AbortSignal.prototype, "abort"); 32 * Create an AbortSignal object. 35 const signal = Object.create(AbortSignal.prototype); 55 Object.defineProperties(AbortSignal.prototype, { 58 // `toString()` should return `"[object AbortSignal]"` [all …]
|
D | abort-controller.js | 15 class AbortSignal extends eventTargetShim.EventTarget { class 34 eventTargetShim.defineEventAttribute(AbortSignal.prototype, "abort"); 39 const signal = Object.create(AbortSignal.prototype); 59 Object.defineProperties(AbortSignal.prototype, { 64 Object.defineProperty(AbortSignal.prototype, Symbol.toStringTag, { 121 exports.AbortSignal = AbortSignal; 126 module.exports.AbortSignal = AbortSignal
|
/third_party/node/test/fixtures/wpt/dom/abort/ |
D | AbortSignal.any.js | 2 const signal = AbortSignal.abort(); 3 assert_true(signal instanceof AbortSignal, "returned object is an AbortSignal"); 8 const s = AbortSignal.abort(); 15 const signal = AbortSignal.timeout(0); 16 assert_true(signal instanceof AbortSignal, "returned object is an AbortSignal"); 21 const signal = AbortSignal.timeout(5); 32 const signal = AbortSignal.timeout(5); 36 const signal = AbortSignal.timeout(5);
|
D | event.any.js | 127 const signal = AbortSignal.abort(); 136 const signal = AbortSignal.abort(reason); 144 const signal = AbortSignal.abort(reason); 150 const signal = AbortSignal.abort('hello'); 162 const signal = AbortSignal.abort();
|
D | abort-signal-any.any.js | 3 abortSignalAnySignalOnlyTests(AbortSignal); 4 abortSignalAnyTests(AbortSignal, AbortController);
|
/third_party/node/deps/npm/node_modules/abort-controller/ |
D | browser.js | 5 const { AbortController, AbortSignal } = 12 module.exports.AbortSignal = AbortSignal
|
D | polyfill.js | 18 if (typeof g.AbortSignal === "undefined") { 19 g.AbortSignal = ac.AbortSignal
|
D | polyfill.mjs | 16 if (typeof g.AbortSignal === "undefined") { 17 g.AbortSignal = ac.AbortSignal
|
D | browser.mjs | 4 const { AbortController, AbortSignal } = 11 export { AbortController, AbortSignal }
|
/third_party/node/test/fixtures/test-runner/output/ |
D | abort.js | 6 test('promise timeout signal', { signal: AbortSignal.timeout(1) }, async (t) => { 22 test('promise abort signal', { signal: AbortSignal.abort() }, async (t) => { 26 test('callback timeout signal', { signal: AbortSignal.timeout(1) }, (t, done) => { 40 test('callback abort signal', { signal: AbortSignal.abort() }, (t, done) => {
|
D | abort_suite.js | 6 describe('describe timeout signal', { signal: AbortSignal.timeout(1) }, (t) => { 20 describe('describe abort signal', { signal: AbortSignal.abort() }, () => {
|
/third_party/node/doc/api/ |
D | globals.md | 63 * `reason` {any} An optional reason, retrievable on the `AbortSignal`'s 77 * Type: {AbortSignal} 79 ### Class: `AbortSignal` 89 The `AbortSignal` is used to notify observers when the 92 #### Static method: `AbortSignal.abort([reason])` argument 107 * Returns: {AbortSignal} 109 Returns a new already aborted `AbortSignal`. 111 #### Static method: `AbortSignal.timeout(delay)` argument 120 the AbortSignal. 122 Returns a new `AbortSignal` which will be aborted in `delay` milliseconds. [all …]
|
/third_party/node/lib/internal/ |
D | abort_controller.js | 137 class AbortSignal extends EventTarget { class 324 ObjectDefineProperties(AbortSignal.prototype, { 328 ObjectDefineProperty(AbortSignal.prototype, SymbolToStringTag, { 336 defineEventHandler(AbortSignal.prototype, 'abort'); 355 ObjectSetPrototypeOf(signal, AbortSignal.prototype); 471 AbortSignal, property
|
/third_party/node/deps/npm/node_modules/glob/dist/cjs/src/ |
D | glob.d.ts | 206 signal?: AbortSignal; 291 signal?: AbortSignal;
|
/third_party/node/deps/npm/node_modules/glob/dist/mjs/ |
D | glob.d.ts | 206 signal?: AbortSignal; 291 signal?: AbortSignal;
|
/third_party/node/deps/undici/src/types/ |
D | dispatcher.d.ts | 10 type AbortSignal = unknown; alias 126 signal?: AbortSignal | EventEmitter | null; 138 signal?: AbortSignal | EventEmitter | null; 161 signal?: AbortSignal | EventEmitter | null;
|