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

Function flushMicrotasks

packages/core/test/resource/resource_spec.ts:1291–1293  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1289});
1290
1291function flushMicrotasks(): Promise<void> {
1292 return new Promise((resolve) => setTimeout(resolve, 0));
1293}
1294
1295function extractError(fn: () => unknown): Error | undefined {
1296 try {

Callers 3

rejectFunction · 0.70
flushFunction · 0.70
resource_spec.tsFile · 0.70

Calls 1

setTimeoutFunction · 0.85

Tested by

no test coverage detected