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

Function resolveOnce

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

Source from the content-addressed store, hash-verified

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

Callers 2

onAbortFunction · 0.85
sendFunction · 0.85

Calls 1

resolveFunction · 0.50

Tested by

no test coverage detected