MCPcopy
hub / github.com/angular/angular / onScheduleTask

Method onScheduleTask

packages/zone.js/lib/zone-spec/wtf.ts:106–122  ·  view source on GitHub ↗
(
      parentZoneDelegate: ZoneDelegate,
      currentZone: Zone,
      targetZone: Zone,
      task: Task,
    )

Source from the content-addressed store, hash-verified

104 }
105
106 onScheduleTask(
107 parentZoneDelegate: ZoneDelegate,
108 currentZone: Zone,
109 targetZone: Zone,
110 task: Task,
111 ): any {
112 const key = task.type + ':' + task.source;
113 let instance = WtfZoneSpec.scheduleInstance[key];
114 if (!instance) {
115 instance = WtfZoneSpec.scheduleInstance[key] = wtfEvents!.createInstance(
116 `Zone:schedule:${key}(ascii zone, any data)`,
117 );
118 }
119 const retValue = parentZoneDelegate.scheduleTask(targetZone, task);
120 instance(zonePathName(targetZone), shallowObj(task.data, 2));
121 return retValue;
122 }
123
124 onInvokeTask(
125 parentZoneDelegate: ZoneDelegate,

Callers

nothing calls this directly

Calls 4

zonePathNameFunction · 0.85
shallowObjFunction · 0.85
createInstanceMethod · 0.80
scheduleTaskMethod · 0.65

Tested by

no test coverage detected