MCPcopy Create free account
hub / github.com/angular/angular / updateMicroTaskStatus

Function updateMicroTaskStatus

packages/core/src/zone/ng_zone.ts:520–530  ·  view source on GitHub ↗
(zone: NgZonePrivate)

Source from the content-addressed store, hash-verified

518}
519
520function updateMicroTaskStatus(zone: NgZonePrivate) {
521 if (
522 zone._hasPendingMicrotasks ||
523 ((zone.shouldCoalesceEventChangeDetection || zone.shouldCoalesceRunChangeDetection) &&
524 zone.callbackScheduled === true)
525 ) {
526 zone.hasPendingMicrotasks = true;
527 } else {
528 zone.hasPendingMicrotasks = false;
529 }
530}
531
532function onEnter(zone: NgZonePrivate) {
533 zone._nesting++;

Callers 3

scheduleCheckStableFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected