src/sequelize/lib/dialects/abstract/connection-manager.js
/**
   * Handler which executes on process exit or connection manager shutdown
   *
   * @private
   * @returns {Promise}
   */
Handler which executes on process exit or connection manager shutdown
@private
@returns {Promise}
Handler which executes on process exit or connection manager shutdown @private @returns { Promise }
async _onProcessExit() {
    if (!this.pool) {
      return;
    }
    await this.pool.drain();
    debug('connection drain due to process exit');
    return await this.pool.destroyAllNow();
  }
async _onProcessExit ( ) { if ( ! this . pool ) { return ; } await this . pool . drain ( ) ; debug ( 'connection drain due to process exit' ) ; return await this . pool . destroyAllNow ( ) ; }
Handler which executes on process exit or connection manager shutdown
 @private
 @returns {Promise}
Handler which executes on process exit or connection manager shutdown @private @returns { Promise }