dis+/node_modules/@google-cloud/pubsub/build/src/publisher/message-queues.js
/**
     * In the event of a publish failure, we need to cache the error in question
     * and reject all pending publish calls, prompting the user to call
     * {@link OrderedQueue#resumePublishing}.
     *
     * @param {Error} err The publishing error.
     */
In the event of a publish failure, we need to cache the error in question
and reject all pending publish calls, prompting the user to call
OrderedQueue#resumePublishing.

@param {Error} err The publishing error.
In the event of a publish failure we need to cache the error in question and reject all pending publish calls prompting the user to call OrderedQueue#resumePublishing . @param { Error } err The publishing error .
handlePublishFailure(err) {
        this.error = new publish_error_1.PublishError(this.key, err);
        while (this.batches.length) {
            const { callbacks } = this.batches.pop();
            callbacks.forEach(callback => callback(err));
        }
    }
handlePublishFailure ( err ) { this . error = new publish_error_1 . PublishError ( this . key , err ) ; while ( this . batches . length ) { const { callbacks } = this . batches . pop ( ) ; callbacks . forEach ( callback => callback ( err ) ) ; } }
In the event of a publish failure, we need to cache the error in question
 and reject all pending publish calls, prompting the user to call
 {@link OrderedQueue#resumePublishing}.
In the event of a publish failure we need to cache the error in question and reject all pending publish calls prompting the user to call { @link OrderedQueue#resumePublishing } .
// reject all pending publishes