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

Function microTask

packages/core/test/testability/testability_spec.ts:26–32  ·  view source on GitHub ↗
(fn: Function)

Source from the content-addressed store, hash-verified

24
25// Schedules a microtasks (using queueMicrotask)
26function microTask(fn: Function): void {
27 queueMicrotask(() => {
28 // We do double dispatch so that we can wait for queueMicrotask in the Testability when
29 // NgZone becomes stable.
30 queueMicrotask(() => fn());
31 });
32}
33
34class NoopGetTestability implements GetTestability {
35 addToWindow(registry: TestabilityRegistry): void {}

Callers 1

Calls 1

fnFunction · 0.50

Tested by

no test coverage detected