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

Function resolveOnce

packages/core/rxjs-interop/src/rx_resource.ts:86–91  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

84 let hasResolved = false;
85
86 function resolveOnce(): void {
87 if (!hasResolved) {
88 hasResolved = true;
89 resolve(stream);
90 }
91 }
92
93 // Track the abort listener so it can be removed if the Observable completes (as a memory
94 // optimization).

Callers 2

onAbortFunction · 0.85
sendFunction · 0.85

Calls 1

resolveFunction · 0.50

Tested by

no test coverage detected