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

Function actAsync

packages/forms/signals/test/web/interop.spec.ts:1570–1576  ·  view source on GitHub ↗
(fn: () => T)

Source from the content-addressed store, hash-verified

1568}
1569
1570async function actAsync<T>(fn: () => T): Promise<T> {
1571 try {
1572 return fn();
1573 } finally {
1574 await TestBed.inject(ApplicationRef).whenStable();
1575 }
1576}

Callers 1

interop.spec.tsFile · 0.70

Calls 3

whenStableMethod · 0.65
injectMethod · 0.65
fnFunction · 0.50

Tested by

no test coverage detected