addWait
zone.addWait()
Adds a wait to the Zone. Adding a wait will delay the Zone's Promise from resolving (the promise created by calling zone.run) by incrementing its internal counter.
Usually a corresponding removeWait will be called to decrement the counter.
new Zone().run( function() {
const zone = Zone.current;
zone.addWait(); // counter at 1
zone.removeWait(); // counter at 0, Promise resolves
} ).then( function() {
} );