Last active
July 27, 2019 16:32
-
-
Save arturovt/02fff5a9486989be2c86b9da56b3c6eb to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Zone { | |
public run<T>( | |
callback: (...args: any[]) => T, | |
applyThis?: any, | |
applyArgs?: any, | |
source?: string | |
): T { | |
_currentZoneFrame = { | |
parent: _currentZoneFrame, | |
zone: this | |
}; | |
try { | |
return this._zoneDelegate.invoke(this, callback, applyThis, applyArgs, source); | |
} finally { | |
_currentZoneFrame = _currentZoneFrame.parent!; | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment