MCPcopy Create free account
hub / github.com/angular/angular / invokeTask

Method invokeTask

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

runTaskMethod · 0.65

Tested by

no test coverage detected