async _enqueueUpdate() {
            this._updateState = this._updateState | STATE_UPDATE_REQUESTED;
            try {
                // Ensure any previous update has resolved before updating.
                // This `await` also ensures that property changes are batched.
                await this._updatePromise;
            }
            catch (e) {
                // Ignore any previous errors. We only care that the previous cycle is
                // done. Any error should have been handled in the previous update.
            }
            const result = this.performUpdate();
            // If `performUpdate` returns a Promise, we await it. This is done to
            // enable coordinating updates with a scheduler. Note, the result is
            // checked to avoid delaying an additional microtask unless we need to.
            if (result != null) {
                await result;
            }
            return !this._hasRequestedUpdate;
        }
/**
         * Sets up the element to asynchronously update.
         */
Sets up the element to asynchronously update.
Sets up the element to asynchronously update .
async _enqueueUpdate() {
            this._updateState = this._updateState | STATE_UPDATE_REQUESTED;
            try {
                await this._updatePromise;
            }
            catch (e) {
            }
            const result = this.performUpdate();
            if (result != null) {
                await result;
            }
            return !this._hasRequestedUpdate;
        }
async _enqueueUpdate ( ) { this . _updateState = this . _updateState | STATE_UPDATE_REQUESTED ; try { await this . _updatePromise ; } catch ( e ) { } const result = this . performUpdate ( ) ; if ( result != null ) { await result ; } return ! this . _hasRequestedUpdate ; }
Sets up the element to asynchronously update.
Sets up the element to asynchronously update .
// Ensure any previous update has resolved before updating. // This `await` also ensures that property changes are batched. // Ignore any previous errors. We only care that the previous cycle is // done. Any error should have been handled in the previous update. // If `performUpdate` returns a Promise, we await it. This is done to // enable coordinating updates with a scheduler. Note, the result is // checked to avoid delaying an additional microtask unless we need to.