MCPcopy Index your code
hub / github.com/angular/angular / actAsync

Function actAsync

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

Source from the content-addressed store, hash-verified

1451}
1452
1453async function actAsync<T>(fn: () => T): Promise<T> {
1454 try {
1455 return fn();
1456 } finally {
1457 await TestBed.inject(ApplicationRef).whenStable();
1458 }
1459}
1460
1461/**
1462 * Replace with `Promise.withResolvers()` once it's available.

Callers 1

interop.spec.tsFile · 0.70

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…