MCPcopy Index your code
hub / github.com/angular/angular / failedDynamicImport

Function failedDynamicImport

packages/core/test/acceptance/defer_spec.ts:92–96  ·  view source on GitHub ↗

* Emulates a failed dynamic import promise.

()

Source from the content-addressed store, hash-verified

90 * Emulates a failed dynamic import promise.
91 */
92function failedDynamicImport(): Promise<void> {
93 return new Promise((_, reject) => {
94 setTimeout(() => reject());
95 });
96}
97
98/**
99 * Helper function to await all pending dynamic imports

Callers 1

interceptFunction · 0.70

Calls 2

setTimeoutFunction · 0.85
rejectFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…