run
zone.run(fn)
Runs a function within a Zone. Calling run will set the Zone's internal Promise which will only resolve once all asynchronous calls within fn
are complete.
Parameters
- fn
{function}
:Any function which needs to run within the Zone. The function will be executed immediately.