* Destroy the application in a macrotask, this allows pending promises to be settled and errors * to be surfaced to the users.
(platformRef: PlatformRef)
| 238 | * to be surfaced to the users. |
| 239 | */ |
| 240 | function asyncDestroyPlatform(platformRef: PlatformRef): Promise<void> { |
| 241 | return new Promise<void>((resolve) => { |
| 242 | setTimeout(() => { |
| 243 | platformRef.destroy(); |
| 244 | resolve(); |
| 245 | }, 0); |
| 246 | }); |
| 247 | } |
| 248 | |
| 249 | /** |
| 250 | * Specifies the value that should be used if no server context value has been provided. |
no test coverage detected
searching dependent graphs…