Executes the fn
function synchronously within the Angular zone and returns value returned by
the function.
Running functions via run
allows you to reenter Angular zone from a task that was executed
outside of the Angular zone (typically started via #runOutsideAngular
).
Any future tasks or microtasks scheduled from within this function will continue executing from within the Angular zone.
If a synchronous error happens it will be rethrown and not reported via onError
.
Source
dynamic/*=R*/ run/*<R>*/(/*=R*/ fn()) { return this._zoneImpl.runInner(fn); }