MCPcopy
hub / github.com/angular/angular / microTask

Function microTask

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

Source from the content-addressed store, hash-verified

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

Callers 1

Calls 1

fnFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…