MCPcopy
hub / github.com/angular/angular / reject

Function reject

packages/core/test/resource/resource_spec.ts:48–56  ·  view source on GitHub ↗
(req: T, reason: any)

Source from the content-addressed store, hash-verified

46 }
47
48 reject(req: T, reason: any) {
49 const entry = this.pending.get(req);
50 if (entry) {
51 this.pending.delete(req);
52 entry.reject(reason);
53 }
54
55 return flushMicrotasks();
56 }
57
58 async flush(): Promise<void> {
59 const allPending = Array.from(this.pending.values()).map((pending) => pending.promise);

Callers 15

writeFileFunction · 0.85
patchJasmineItFunction · 0.85
promiseExecFunction · 0.85
failedDynamicImportFunction · 0.85
interceptFunction · 0.85
constructorMethod · 0.85
asyncRejectRenderHookFunction · 0.85
failedDynamicImportFunction · 0.85
getMethod · 0.85
ReproCmpClass · 0.85

Calls 4

flushMicrotasksFunction · 0.70
getMethod · 0.65
deleteMethod · 0.45
rejectMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…