MCPcopy
hub / github.com/angular/angular / macroTask

Function macroTask

packages/core/test/zone/ng_zone_spec.ts:24–27  ·  view source on GitHub ↗
(fn: (...args: any[]) => void, timer = 1)

Source from the content-addressed store, hash-verified

22const resultTimer = 1000;
23// Schedules a macrotask (using a timer)
24function macroTask(fn: (...args: any[]) => void, timer = 1): void {
25 // adds longer timers for passing tests in IE and Edge
26 setTimeout(fn, 1);
27}
28
29let _log: Log;
30let _errors: any[];

Callers 2

ng_zone_spec.tsFile · 0.85
commonTestsFunction · 0.85

Calls 1

setTimeoutFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…