()
| 604 | } |
| 605 | |
| 606 | destroy() { |
| 607 | for (const client of this._self.#idleClients) { |
| 608 | client.destroy(); |
| 609 | } |
| 610 | this._self.#idleClients.reset(); |
| 611 | |
| 612 | for (const client of this._self.#clientsInUse) { |
| 613 | client.destroy(); |
| 614 | } |
| 615 | |
| 616 | this._self.#clientSideCache?.onPoolClose(); |
| 617 | |
| 618 | this._self.#clientsInUse.reset(); |
| 619 | |
| 620 | this._self.#isOpen = false; |
| 621 | } |
| 622 | } |