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

Function whenStable

packages/service-worker/test/provider_spec.ts:241–244  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

239 ) => {
240 const isStableSub = new Subject<boolean>();
241 const whenStable = () =>
242 new Promise<void>((resolve) =>
243 isStableSub.pipe(filter(Boolean), take(1)).subscribe(() => resolve()),
244 );
245
246 if (apiFnName === provideServiceWorkerApi) {
247 TestBed.configureTestingModule({

Callers

nothing calls this directly

Calls 3

takeFunction · 0.85
subscribeMethod · 0.65
resolveFunction · 0.50

Tested by

no test coverage detected