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

Method invokeTask

packages/zone.js/lib/zone-impl.ts:1431–1448  ·  view source on GitHub ↗
(task: any, target: any, args: any)

Source from the content-addressed store, hash-verified

1429 }
1430
1431 static invokeTask(task: any, target: any, args: any): any {
1432 if (!task) {
1433 task = this;
1434 }
1435 _numberOfNestedTaskFrames++;
1436 try {
1437 task.runCount++;
1438 return task.zone.runTask(task, target, args);
1439 } finally {
1440 try {
1441 if (_numberOfNestedTaskFrames === 1 && !global[enableNativeMicrotaskDraining]) {
1442 drainMicroTaskQueueSynchronously();
1443 }
1444 } finally {
1445 _numberOfNestedTaskFrames--;
1446 }
1447 }
1448 }
1449
1450 get zone(): ZoneImpl {
1451 return this._zone!;

Callers

nothing calls this directly

Calls 2

runTaskMethod · 0.65

Tested by

no test coverage detected