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

Function resolveOnce

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

Source from the content-addressed store, hash-verified

70 let hasResolved = false;
71
72 function resolveOnce(): void {
73 if (!hasResolved) {
74 hasResolved = true;
75 resolve(stream);
76 }
77 }
78
79 // Track the abort listener so it can be removed if the Observable completes (as a memory
80 // optimization).

Callers 2

onAbortFunction · 0.85
sendFunction · 0.85

Calls 1

resolveFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…