(cb?: (err: ErrorReply | null, replies?: Array<unknown>) => unknown)
| 165 | } |
| 166 | |
| 167 | exec(cb?: (err: ErrorReply | null, replies?: Array<unknown>) => unknown) { |
| 168 | const promise = this.#client._executeMulti(this.#multi.queue); |
| 169 | |
| 170 | if (!cb) { |
| 171 | promise.catch(err => this.#client.emit('error', err)); |
| 172 | return; |
| 173 | } |
| 174 | |
| 175 | promise |
| 176 | .then(results => cb(null, this.#multi.transformReplies(results))) |
| 177 | .catch(err => cb?.(err)); |
| 178 | } |
| 179 | } |
no test coverage detected