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

Function scheduleMacroTaskWithCurrentZone

packages/zone.js/lib/common/utils.ts:48–56  ·  view source on GitHub ↗
(
  source: string,
  callback: Function,
  data?: TaskData,
  customSchedule?: (task: Task) => void,
  customCancel?: (task: Task) => void,
)

Source from the content-addressed store, hash-verified

46}
47
48export function scheduleMacroTaskWithCurrentZone(
49 source: string,
50 callback: Function,
51 data?: TaskData,
52 customSchedule?: (task: Task) => void,
53 customCancel?: (task: Task) => void,
54): MacroTask {
55 return Zone.current.scheduleMacroTask(source, callback, data, customSchedule, customCancel);
56}
57
58// Hack since TypeScript isn't compiling this for a worker.
59declare const WorkerGlobalScope: any;

Callers 3

patchXHRFunction · 0.90
patchTimerFunction · 0.90
patchMacroTaskFunction · 0.85

Calls 1

scheduleMacroTaskMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…