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

Method runGuarded

packages/zone.js/lib/zone-impl.ts:900–918  ·  view source on GitHub ↗
(
      callback: (...args: any[]) => T,
      applyThis: any = null,
      applyArgs?: any[],
      source?: string,
    )

Source from the content-addressed store, hash-verified

898
899 public runGuarded(callback: Function, applyThis?: any, applyArgs?: any[], source?: string): any;
900 public runGuarded<T>(
901 callback: (...args: any[]) => T,
902 applyThis: any = null,
903 applyArgs?: any[],
904 source?: string,
905 ) {
906 _currentZoneFrame = {parent: _currentZoneFrame, zone: this};
907 try {
908 try {
909 return this._zoneDelegate.invoke(this, callback, applyThis, applyArgs, source);
910 } catch (error) {
911 if (this._zoneDelegate.handleError(this, error)) {
912 throw error;
913 }
914 }
915 } finally {
916 _currentZoneFrame = _currentZoneFrame.parent!;
917 }
918 }
919
920 runTask(task: Task, applyThis?: any, applyArgs?: any): any {
921 if (task.zone != this) {

Callers

nothing calls this directly

Calls 2

invokeMethod · 0.65
handleErrorMethod · 0.65

Tested by

no test coverage detected