MCPcopy
hub / github.com/angular/angular / actAsync

Function actAsync

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

Source from the content-addressed store, hash-verified

463
464// Async version that waits for application to stabilize (for NgModel's async value updates)
465async function actAsync<T>(fn: () => T): Promise<T> {
466 try {
467 return fn();
468 } finally {
469 await TestBed.inject(ApplicationRef).whenStable();
470 }
471}

Callers 1

Calls 3

whenStableMethod · 0.65
injectMethod · 0.65
fnFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…