Home
last modified time | relevance | path

Searched refs:promises (Results 1 – 25 of 213) sorted by relevance

123456789

/third_party/typescript/tests/baselines/reference/
Dpromises.symbols1 === tests/cases/compiler/promises.ts ===
3 >Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(promises.ts, 0, 0))
4 >T : Symbol(T, Decl(lib.es5.d.ts, --, --), Decl(promises.ts, 0, 18))
7 >then : Symbol(Promise.then, Decl(lib.es5.d.ts, --, --), Decl(promises.ts, 0, 22), Decl(promises.ts…
8 >U : Symbol(U, Decl(promises.ts, 1, 9))
9 >success : Symbol(success, Decl(promises.ts, 1, 12))
10 >value : Symbol(value, Decl(promises.ts, 1, 23))
11 >T : Symbol(T, Decl(lib.es5.d.ts, --, --), Decl(promises.ts, 0, 18))
12 >U : Symbol(U, Decl(promises.ts, 1, 9))
13 >Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(promises.ts, 0, 0))
[all …]
DvariableDeclaratorResolvedDuringContextualTyping.types39 static join(promises: { [name: string]: Promise; }): Promise;
40 >join : { (promises: { [name: string]: Promise; }): Promise; (promises: Promise[]): Promise; }
41 >promises : { [name: string]: Promise; }
44 static join(promises: Promise[]): Promise;
45 >join : { (promises: { [name: string]: Promise; }): Promise; (promises: Promise[]): Promise; }
46 >promises : Promise[]
48 static any(promises: Promise[]): Promise;
49 >any : (promises: Promise[]) => Promise
50 >promises : Promise[]
148 public static join<ValueType>(promises: TPromise<ValueType>[]): TPromise<ValueType[]>;
[all …]
DparserUnterminatedGeneric1.types3 all(promises: IPromise < any > []): IPromise<
4 >all : (promises: IPromise<any>[]) => any
5 >promises : any[]
DparserUnterminatedGeneric1.symbols5 all(promises: IPromise < any > []): IPromise<
7 >promises : Symbol(promises, Decl(parserUnterminatedGeneric1.ts, 1, 12))
/third_party/node/test/parallel/
Dtest-assert-async.js6 const promises = []; variable
44 promises.push(assert.rejects(rejectingFn, errObj));
45 promises.push(assert.rejects(rejectingFn(), errObj));
53 promises.push(assert.rejects(validRejectingThenable, { code: 'FAIL' }));
57 promises.push(assert.rejects(
63 promises.push(assert.rejects(
72 promises.push(assert.rejects(
100 promises.push(assert.rejects(promise, common.mustCall(handler)));
103 promises.push(assert.rejects(promise, {
111 promises.push(assert.rejects(promise, common.mustCall(handler)));
[all …]
Dtest-fs-append-file.js59 fs.promises.appendFile(filename, s)
60 .then(common.mustCall(() => fs.promises.readFile(filename)))
85 fs.promises.appendFile(filename, s)
86 .then(common.mustCall(() => fs.promises.readFile(filename)))
115 fs.promises.appendFile(filename, buf)
116 .then(common.mustCall(() => fs.promises.readFile(filename)))
142 fs.promises.appendFile(filename, data),
178 fs.promises.open(filename, 'a+')
181 return fs.promises.appendFile(fd, s);
184 .then(common.mustCall(() => fs.promises.readFile(filename)))
Dtest-internal-module-wrap.js15 const promises = foo.link(() => setTimeoutAsync(1000).then(() => bar)); constant
16 assert.strictEqual(promises.length, 1);
17 assert(isPromise(promises[0]));
19 await Promise.all(promises);
21 assert.strictEqual(getPromiseDetails(promises[0])[1], bar);
Dtest-fs-opendir.js123 const dir = await fs.promises.opendir(testDir);
145 for await (const dirent of await fs.promises.opendir(testDir)) {
159 const dir = await fs.promises.opendir(testDir);
169 const dir = await fs.promises.opendir(testDir);
181 const dir = await fs.promises.opendir(testDir);
221 const dir = await fs.promises.opendir(testDir);
228 const dir = await fs.promises.opendir(testDir);
236 const dir = await fs.promises.opendir(testDir);
255 const dir = await fs.promises.opendir(testDir);
267 const dir = await fs.promises.opendir(testDir);
Dtest-fs-lchown.js8 const { promises } = fs;
16 promises.lchown(false, 1, 1)
36 promises.lchown('not_a_file_that_exists', i, 1)
40 promises.lchown('not_a_file_that_exists', 1, i)
62 await promises.lchown(testFile, uid, gid);
Dtest-dns-set-default-order.js20 const dnsPromises = dns.promises;
35 assert.throws(() => dns.promises.setDefaultResultOrder('my_order'), {
41 assert.throws(() => dns.promises.setDefaultResultOrder(4), {
74 dns.promises.setDefaultResultOrder('verbatim');
84 dns.promises.setDefaultResultOrder('ipv4first');
Dtest-fs-rm.js170 assert.rejects(fs.promises.rm(dir), { syscall: 'rm' });
171 assert.rejects(fs.promises.rm(dir, { recursive: false }), {
176 await fs.promises.rm(dir, { recursive: true });
179 assert.rejects(fs.promises.rm(dir), { syscall: 'stat' });
182 assert.rejects(fs.promises.rm(
192 fs.promises.rm(path.join(tmpdir.path, 'noexist.txt'), { force: true });
199 await fs.promises.rm(filePath, { recursive: true });
Dtest-fs-open.js52 await fs.promises.open(__filename);
53 await fs.promises.open(__filename, 'r');
92 fs.promises.open(i, 'r'),
117 fs.promises.open(__filename, 'r', mode),
Dtest-fs-access.js76 fs.promises.access(__filename)
82 fs.promises.access(__filename, fs.R_OK)
88 fs.promises.access(readOnlyFile, fs.F_OK | fs.R_OK)
99 fs.promises.access(doesNotExist)
115 fs.promises.access(readOnlyFile, fs.W_OK)
131 fs.promises.access(100, fs.F_OK)
/third_party/node/deps/npm/node_modules/bluebird/js/release/
Drace.js12 function race(promises, parent) { argument
13 var maybePromise = tryConvertToPromise(promises);
18 promises = util.asArray(promises);
19 if (promises === null)
20 …urn apiRejection("expecting an array or an iterable object but got " + util.classString(promises));
29 for (var i = 0, len = promises.length; i < len; ++i) {
30 var val = promises[i];
32 if (val === undefined && !(i in promises)) {
41 Promise.race = function (promises) { argument
42 return race(promises, undefined);
Deach.js10 function PromiseMapSeries(promises, fn) { argument
11 return PromiseReduce(promises, fn, INTERNAL, INTERNAL);
23 Promise.each = function (promises, fn) { argument
24 return PromiseReduce(promises, fn, INTERNAL, 0)
25 ._then(promiseAllThis, undefined, undefined, promises, undefined);
Dany.js4 function any(promises) { argument
5 var ret = new SomePromiseArray(promises);
13 Promise.any = function (promises) { argument
14 return any(promises);
Dmap.js14 function MappingPromiseArray(promises, fn, limit, _filter) { argument
15 this.constructor$(promises);
134 function map(promises, fn, options, _filter) { argument
156 return new MappingPromiseArray(promises, fn, limit, _filter).promise();
163 Promise.map = function (promises, fn, options, _filter) { argument
164 return map(promises, fn, options, _filter);
Dreduce.js12 function ReductionPromiseArray(promises, fn, initialValue, _each) { argument
13 this.constructor$(promises);
116 Promise.reduce = function (promises, fn, initialValue, _each) { argument
117 return reduce(promises, fn, initialValue, _each);
128 function reduce(promises, fn, initialValue, _each) { argument
132 var array = new ReductionPromiseArray(promises, fn, initialValue, _each);
Dprops.js92 function props(promises) { argument
94 var castValue = tryConvertToPromise(promises);
115 Promise.props = function (promises) { argument
116 return props(promises);
/third_party/node/lib/
Ddns.js67 let promises = null; // Lazy loaded variable
283 if (promises !== null)
284 bindDefaultResolver(promises, promises.Resolver.prototype);
330 promises: { property
334 if (promises === null) {
335 promises = require('internal/dns/promises');
336 promises.setServers = defaultResolverSetServers;
337 promises.setDefaultResultOrder = setDefaultResultOrder;
339 return promises;
/third_party/flutter/skia/modules/canvaskit/perf/
Danimation.bench.js30 let promises = [fetchAndText(`/assets/${animStr}.json`), LoadCanvasKit];
45 Promise.all(promises).then((responses) => {
76 Promise.all(promises).then((responses) => {
102 Promise.all(promises).then((responses) => {
137 Promise.all(promises).then((responses) => {
/third_party/typescript/tests/cases/compiler/
DvariableDeclaratorResolvedDuringContextualTyping.ts23 static join(promises: { [name: string]: Promise; }): Promise;
24 static join(promises: Promise[]): Promise;
25 static any(promises: Promise[]): Promise;
50 public static join<ValueType>(promises: TPromise<ValueType>[]): TPromise<ValueType[]>;
51 public static any<ValueType>(promises: TPromise<ValueType>[]): TPromise<ValueType>;
/third_party/skia/modules/canvaskit/tests/
Dskottie.spec.js32 gm('skottie_animgif', (canvas, promises) => {
37 expect(promises[1]).not.toBe('NOT FOUND');
38 const animation = CanvasKit.MakeManagedAnimation(promises[1], {
39 'flightAnim.gif': promises[0],
65 gm('skottie_setcolor', (canvas, promises) => {
70 expect(promises[0]).not.toBe('NOT FOUND');
74 const animation = CanvasKit.MakeManagedAnimation(promises[0]);
/third_party/node/deps/npm/node_modules/libcipm/lib/config/
Dnpm-config.js57 acc.promises.push(maybeReadIni(path.join(acc.path, '.npmrc')))
58 acc.promises.push(maybeReadIni(path.join(acc.path, 'npmrc')))
62 promises: [] property
63 }).promises.concat(
/third_party/node/test/sequential/
Dtest-inspector-stress-http.js22 const promises = [];
24 promises.push(testHttp(child, i));
26 const result = await Promise.all(promises);

123456789