(err: Error)
| 625 | } |
| 626 | |
| 627 | flushAll(err: Error): void { |
| 628 | this.resetDecoder(); |
| 629 | this.#pubSub.reset(); |
| 630 | this.#flushWaitingForReply(err); |
| 631 | for (const node of this.#toWrite) { |
| 632 | RedisCommandsQueue.#flushToWrite(node, err); |
| 633 | } |
| 634 | this.#toWrite.reset(); |
| 635 | } |
| 636 | |
| 637 | isEmpty() { |
| 638 | return this.#toWrite.length === 0 && this.#waitingForReply.length === 0; |