Home
last modified time | relevance | path

Searched refs:AbortSignal (Results 1 – 25 of 100) sorted by relevance

1234

/third_party/node/test/parallel/
Dtest-abortsignal-any.mjs6 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 …]
Dtest-abortcontroller.js83 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 …]
Dtest-child-process-exec-abortcontroller-promisified.js65 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
Dtest-child-process-fork-abort-signal.js46 const signal = AbortSignal.abort();
61 const signal = AbortSignal.abort(new Error('boom'));
78 const signal = AbortSignal.abort();
Dtest-child-process-spawn-controller.js74 const signal = AbortSignal.abort();
92 const signal = AbortSignal.abort(new Error('boom'));
109 const signal = AbortSignal.abort('boom');
Dtest-abortsignal-cloneable.js62 const signal = transferableAbortSignal(AbortSignal.abort('boom'));
67 ok(data instanceof AbortSignal);
Dtest-stream-asIndexedPairs.mjs34 // AbortSignal
44 const signal = AbortSignal.abort();
Dtest-timers-immediate-promisified.js44 const signal = AbortSignal.abort(); // Abort in advance
102 const signal = AbortSignal.abort('boom');
Dtest-timers-timeout-promisified.js44 const signal = AbortSignal.abort(); // Abort in advance
102 const signal = AbortSignal.abort('boom');
/third_party/node/deps/npm/node_modules/abort-controller/dist/
Dabort-controller.mjs11 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 …]
Dabort-controller.js15 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/
DAbortSignal.any.js2 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);
Devent.any.js127 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();
Dabort-signal-any.any.js3 abortSignalAnySignalOnlyTests(AbortSignal);
4 abortSignalAnyTests(AbortSignal, AbortController);
/third_party/node/deps/npm/node_modules/abort-controller/
Dbrowser.js5 const { AbortController, AbortSignal } =
12 module.exports.AbortSignal = AbortSignal
Dpolyfill.js18 if (typeof g.AbortSignal === "undefined") {
19 g.AbortSignal = ac.AbortSignal
Dpolyfill.mjs16 if (typeof g.AbortSignal === "undefined") {
17 g.AbortSignal = ac.AbortSignal
Dbrowser.mjs4 const { AbortController, AbortSignal } =
11 export { AbortController, AbortSignal }
/third_party/node/test/fixtures/test-runner/output/
Dabort.js6 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) => {
Dabort_suite.js6 describe('describe timeout signal', { signal: AbortSignal.timeout(1) }, (t) => {
20 describe('describe abort signal', { signal: AbortSignal.abort() }, () => {
/third_party/node/doc/api/
Dglobals.md63 * `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/
Dabort_controller.js137 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/
Dglob.d.ts206 signal?: AbortSignal;
291 signal?: AbortSignal;
/third_party/node/deps/npm/node_modules/glob/dist/mjs/
Dglob.d.ts206 signal?: AbortSignal;
291 signal?: AbortSignal;
/third_party/node/deps/undici/src/types/
Ddispatcher.d.ts10 type AbortSignal = unknown; alias
126 signal?: AbortSignal | EventEmitter | null;
138 signal?: AbortSignal | EventEmitter | null;
161 signal?: AbortSignal | EventEmitter | null;

1234