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

Function actAsync

packages/forms/signals/test/web/template_fvc.spec.ts:816–822  ·  view source on GitHub ↗
(fn: () => T)

Source from the content-addressed store, hash-verified

814
815// Async version that waits for application to stabilize (for NgModel's async value updates)
816async function actAsync<T>(fn: () => T): Promise<T> {
817 try {
818 return fn();
819 } finally {
820 await TestBed.inject(ApplicationRef).whenStable();
821 }
822}

Callers 1

Calls 3

whenStableMethod · 0.65
injectMethod · 0.65
fnFunction · 0.50

Tested by

no test coverage detected