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

Function asyncDestroyPlatform

packages/platform-server/src/utils.ts:240–247  ·  view source on GitHub ↗

* Destroy the application in a macrotask, this allows pending promises to be settled and errors * to be surfaced to the users.

(platformRef: PlatformRef)

Source from the content-addressed store, hash-verified

238 * to be surfaced to the users.
239 */
240function 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.

Callers 2

renderModuleFunction · 0.85
renderApplicationFunction · 0.85

Calls 3

setTimeoutFunction · 0.85
destroyMethod · 0.65
resolveFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…