async pushAsync(key, value) {
        this.validateBeforeSet(key, value);
        this.set(key, value);
        return this.pushPendingAsync();
    }
/**
     * Set a preference value for the current user, and immediately trigger a sync to the server.
     *
     * Useful when important to verify that the preference has been fully round-tripped - e.g.
     * before making another call that relies on its updated value being read on the server.
     *
     * @param key
     * @param value
     * @returns {Promise}
     */
Set a preference value for the current user, and immediately trigger a sync to the server.
Useful when important to verify that the preference has been fully round-tripped - e.g.
before making another call that relies on its updated value being read on the server.

@param key
@param value
@returns {Promise}
Set a preference value for the current user and immediately trigger a sync to the server . Useful when important to verify that the preference has been fully round - tripped - e . g . before making another call that relies on its updated value being read on the server . @param key @param value @returns { Promise }
async pushAsync(key, value) {
        this.validateBeforeSet(key, value);
        this.set(key, value);
        return this.pushPendingAsync();
    }
async pushAsync ( key , value ) { this . validateBeforeSet ( key , value ) ; this . set ( key , value ) ; return this . pushPendingAsync ( ) ; }
Set a preference value for the current user, and immediately trigger a sync to the server.
Set a preference value for the current user and immediately trigger a sync to the server .