| 883 | |
| 884 | public run(callback: Function, applyThis?: any, applyArgs?: any[], source?: string): any; |
| 885 | public run<T>( |
| 886 | callback: (...args: any[]) => T, |
| 887 | applyThis?: any, |
| 888 | applyArgs?: any[], |
| 889 | source?: string, |
| 890 | ): T { |
| 891 | _currentZoneFrame = {parent: _currentZoneFrame, zone: this}; |
| 892 | try { |
| 893 | return this._zoneDelegate.invoke(this, callback, applyThis, applyArgs, source); |
| 894 | } finally { |
| 895 | _currentZoneFrame = _currentZoneFrame.parent!; |
| 896 | } |
| 897 | } |
| 898 | |
| 899 | public runGuarded(callback: Function, applyThis?: any, applyArgs?: any[], source?: string): any; |
| 900 | public runGuarded<T>( |