MCPcopy Create free account
hub / github.com/angular/angular / getAbortReason

Function getAbortReason

packages/core/src/resource/resource.ts:560–562  ·  view source on GitHub ↗

* Returns a shared `AbortError` reason, since `abort()` without a reason creates a new one (with a * stack trace) on every call, causing performance degradation on deep component trees.

()

Source from the content-addressed store, hash-verified

558 * stack trace) on every call, causing performance degradation on deep component trees.
559 */
560function getAbortReason(): DOMException {
561 return (abortReason ??= new DOMException('The operation was aborted.', 'AbortError'));
562}
563
564function saveToTransferState<R, T>(
565 result: ResourceStreamItem<T> | undefined,

Callers 1

abortInProgressLoadMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected