removeWait
zone.removeWait()
Decrements the Zone's internal counter that is used to decide when its run Promise will resolve.
Usually used in conjuction with addWait. Most of the time you'll want to use waitFor, but in some cases where a callback is not enough to know waiting is complete, using addWait/removeWait gives you finer grained control.
const zone = new Zone();
const obj = new SomeObject();
// This is only done when the event.status is 3
obj.onprogress = function( ev ) {
if ( ev.status === 3 ) {
zone.removeWait();
}
};
zone.addWait();