| /third_party/typescript/tests/baselines/reference/ |
| D | promises.symbols | 1 === 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 …]
|
| D | variableDeclaratorResolvedDuringContextualTyping.types | 39 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 …]
|
| D | parserUnterminatedGeneric1.types | 3 all(promises: IPromise < any > []): IPromise< 4 >all : (promises: IPromise<any>[]) => IPromise 5 >promises : IPromise<any>[]
|
| D | parserUnterminatedGeneric1.symbols | 5 all(promises: IPromise < any > []): IPromise< 7 >promises : Symbol(promises, Decl(parserUnterminatedGeneric1.ts, 1, 12))
|
| /third_party/grpc/test/core/promise/ |
| D | promise_fuzzer.cc | 40 // Return type for infallible promises. 207 return Map(Join(MakePromise(p.join().promises(0))), in MakePromise() 211 Join(MakePromise(p.join().promises(0)), in MakePromise() 212 MakePromise(p.join().promises(1))), in MakePromise() 215 return Map(Join(MakePromise(p.join().promises(0)), in MakePromise() 216 MakePromise(p.join().promises(1)), in MakePromise() 217 MakePromise(p.join().promises(2))), in MakePromise() 222 return Map(Join(MakePromise(p.join().promises(0)), in MakePromise() 223 MakePromise(p.join().promises(1)), in MakePromise() 224 MakePromise(p.join().promises(2)), in MakePromise() [all …]
|
| D | try_join_test.cc | 27 template <typename... Promises> 28 static auto TryJoinImpl(Promises... promises) { in TryJoinImpl() 29 return TryJoin<absl::StatusOr>(std::move(promises)...); in TryJoinImpl() 66 template <typename... Promises> 67 static auto TryJoinImpl(Promises... promises) { in TryJoinImpl() 68 return TryJoin<ValueOrFailure>(std::move(promises)...); in TryJoinImpl()
|
| /third_party/grpc/src/core/lib/promise/ |
| D | prioritized_race.h | 56 template <typename... Promises> 59 template <typename Promise, typename... Promises> 60 class PrioritizedRace<Promise, Promises...> 61 : public TwoPartyPrioritizedRace<Promise, PrioritizedRace<Promises...>> { 64 explicit PrioritizedRace(Promise promise, Promises... promises) in PrioritizedRace() argument 65 : TwoPartyPrioritizedRace<Promise, PrioritizedRace<Promises...>>( in PrioritizedRace() 67 PrioritizedRace<Promises...>(std::move(promises)...)) {} in PrioritizedRace() 83 /// Run all the promises until one is non-pending. 84 /// Once there's a non-pending promise, repoll all the promises before that. 86 template <typename... Promises> [all …]
|
| D | race.h | 27 template <typename... Promises> 30 template <typename Promise, typename... Promises> 31 class Race<Promise, Promises...> { 36 Promises... promises) in Race() 37 : promise_(std::move(promise)), next_(std::move(promises)...) {} in Race() 54 Race<Promises...> next_; 73 /// Run all the promises, return the first result that's available. 76 template <typename... Promises> 77 GPR_ATTRIBUTE_ALWAYS_INLINE_FUNCTION inline promise_detail::Race<Promises...> 78 Race(Promises... promises) { in Race() argument [all …]
|
| D | all_ok.h | 62 template <typename Result, typename... Promises> 65 GPR_ATTRIBUTE_ALWAYS_INLINE_FUNCTION explicit AllOk(Promises... promises) in AllOk() argument 66 : state_(std::move(promises)...) {} in AllOk() 72 JoinState<AllOkTraits<Result>, Promises...> state_; 77 // Run all promises. 80 template <typename Result, typename... Promises> 81 GPR_ATTRIBUTE_ALWAYS_INLINE_FUNCTION inline auto AllOk(Promises... promises) { in AllOk() argument 82 return promise_detail::AllOk<Result, Promises...>(std::move(promises)...); in AllOk() 94 std::vector<Promise> promises; in AllOkIter() local 97 promises.emplace_back(factory.Make(*it)); in AllOkIter() [all …]
|
| D | join.h | 31 // The Join promise combinator takes as inputs multiple promises. 32 // When the Join promise is polled, these input promises will be executed 35 // Each subsequent execution of the Join will only execute the input promises 40 // Suppose you have three promises 44 // Then you poll the Join of theses three promises, the result will have the 48 // 1. Return Pending{} if even one promise in the input list of promises 50 // 2. Return the tuple if all promises are resolved. 52 // All promises in the input list will be executed irrespective of failure 116 template <typename... Promises> 119 GPR_ATTRIBUTE_ALWAYS_INLINE_FUNCTION explicit Join(Promises... promises) in Join() argument [all …]
|
| D | try_join.h | 108 template <template <typename> class R, typename... Promises> 111 GPR_ATTRIBUTE_ALWAYS_INLINE_FUNCTION explicit TryJoin(Promises... promises) in TryJoin() argument 112 : state_(std::move(promises)...) {} in TryJoin() 118 JoinState<TryJoinTraits<R>, Promises...> state_; 132 // Run all promises. 135 template <template <typename> class R, typename... Promises> 137 Promises...> 138 TryJoin(Promises... promises) { in TryJoin() argument 139 return promise_detail::TryJoin<R, Promises...>(std::move(promises)...); in TryJoin()
|
| /third_party/typescript/tests/cases/fourslash/ |
| D | importNameCodeFix_uriStyleNodeCoreModules2.ts | 7 //// declare module "fs/promises" { function writeFile(): Promise<void> } 9 //// declare module "node:fs/promises" { export * from "fs/promises"; } 12 //// import "node:fs/promises"; 17 verify.importFixModuleSpecifiers("", ["node:fs", "node:fs/promises", "fs", "fs/promises"]); 23 verify.importFixModuleSpecifiers("", ["fs", "fs/promises", "node:fs", "node:fs/promises"]); 26 edit.replaceLine(0, `import "node:fs/promises";\n`); 29 verify.importFixModuleSpecifiers("", ["node:fs", "node:fs/promises", "fs", "fs/promises"]);
|
| D | importNameCodeFix_uriStyleNodeCoreModules3.ts | 9 //// declare module "fs/promises" { function writeFile(): Promise<void> } 11 //// declare module "node:fs/promises" { export * from "fs/promises"; } 14 //// import "node:fs/promises"; 34 verify.importFixModuleSpecifiers("noPrefix", ["fs", "fs/promises", "node:fs", "node:fs/promises"]); 35 verify.importFixModuleSpecifiers("prefix", ["node:fs", "node:fs/promises", "fs", "fs/promises"]); 41 verify.importFixModuleSpecifiers("mixed1", ["fs", "fs/promises", "node:fs", "node:fs/promises"]); 42 verify.importFixModuleSpecifiers("mixed2", ["node:fs", "node:fs/promises", "fs", "fs/promises"]);
|
| D | completionsImport_uriStyleNodeCoreModules3.ts | 9 //// declare module "fs/promises" { function writeFile(): Promise<void> } 11 //// declare module "node:fs/promises" { export * from "fs/promises"; } 14 //// import "node:fs/promises"; 43 source: "fs/promises", 61 source: "node:fs/promises", 83 source: "fs/promises", 101 source: "node:fs/promises",
|
| D | importNameCodeFix_uriStyleNodeCoreModules1.ts | 7 //// declare module "fs/promises" { function writeFile(): Promise<void> } 9 //// declare module "node:fs/promises" { export * from "fs/promises"; } 14 verify.importFixModuleSpecifiers("", ["fs", "fs/promises", "node:fs", "node:fs/promises"]);
|
| D | completionsImport_uriStyleNodeCoreModules2.ts | 7 //// declare module "fs/promises" { function writeFile(): Promise<void> } 9 //// declare module "node:fs/promises" { export * from "fs/promises"; } 12 //// import "node:fs/promises"; 26 source: "node:fs/promises",
|
| D | completionsImport_uriStyleNodeCoreModules1.ts | 7 //// declare module "fs/promises" { function writeFile(): Promise<void> } 9 //// declare module "node:fs/promises" { export * from "fs/promises"; } 23 source: "fs/promises",
|
| /third_party/typescript/src/lib/ |
| D | es2021.promise.d.ts | 18 …ection reasons if all of the given promises are rejected. It resolves all elements of the passed i… 19 * @param values An array or iterable of Promises. 25 …ection reasons if all of the given promises are rejected. It resolves all elements of the passed i… 26 * @param values An array or iterable of Promises.
|
| D | es2020.promise.d.ts | 16 * of the provided Promises resolve or reject. 17 * @param values An array of Promises. 24 * of the provided Promises resolve or reject. 25 * @param values An array of Promises.
|
| /third_party/skia/m133/tools/perf-canvaskit-puppeteer/ |
| D | skottie-frames.html | 49 const promises = []; 50 promises.push(...loadFonts(lottie.fonts)); 51 promises.push(...loadAssets(lottie.assets)); 52 return Promise.all(promises); 115 const promises = []; 117 return promises; 121 promises.push(fetch(`${ASSETS_PATH}/${font.fName}.ttf`).then((resp) => { 137 return promises; 141 const promises = []; 150 promises.push(fetch(`${ASSETS_PATH}/${asset.p}`) [all …]
|
| /third_party/skia/tools/perf-canvaskit-puppeteer/ |
| D | skottie-frames.html | 49 const promises = []; 50 promises.push(...loadFonts(lottie.fonts)); 51 promises.push(...loadAssets(lottie.assets)); 52 return Promise.all(promises); 115 const promises = []; 117 return promises; 121 promises.push(fetch(`${ASSETS_PATH}/${font.fName}.ttf`).then((resp) => { 137 return promises; 141 const promises = []; 150 promises.push(fetch(`${ASSETS_PATH}/${asset.p}`) [all …]
|
| /third_party/grpc/test/core/promise/promise_fuzzer_corpus/ |
| D | crash-4758aec0c3e382d4fb3e398d634d8da72ed0d574 | 3 promises { 7 promises { 10 promises { 13 promises {
|
| /third_party/typescript/lib/ |
| D | lib.es2021.promise.d.ts | 38 …ection reasons if all of the given promises are rejected. It resolves all elements of the passed i… 39 * @param values An array or iterable of Promises. 45 …ection reasons if all of the given promises are rejected. It resolves all elements of the passed i… 46 * @param values An array or iterable of Promises.
|
| D | lib.es2020.promise.d.ts | 36 * of the provided Promises resolve or reject. 37 * @param values An array of Promises. 44 * of the provided Promises resolve or reject. 45 * @param values An array of Promises.
|
| /third_party/skia/m133/modules/canvaskit/tests/ |
| D | skottie_test.js | 40 gm('skottie_animgif', (canvas, promises) => { 45 expect(promises[1]).not.toBe('NOT FOUND'); 46 const animation = CanvasKit.MakeManagedAnimation(promises[1], { 47 'flightAnim.gif': promises[0], 72 gm('skottie_setcolor', (canvas, promises) => { 77 expect(promises[0]).not.toBe('NOT FOUND'); 80 const animation = CanvasKit.MakeManagedAnimation(promises[0]); 88 gm('skottie_slots', (canvas, promises) => { 93 expect(promises[0]).not.toBe('NOT FOUND'); 96 const animation = CanvasKit.MakeManagedAnimation(promises[0], { [all …]
|