async empty()

in src/pool/BaseConnectionPool.ts [183:191]


  async empty (): Promise<void> {
    debug('Emptying the connection pool')
    const connections = this.connections
    this.connections = []
    this.size = 0
    for (const connection of connections) {
      await connection.close()
    }
  }