(promise: Promise<void>)
| 225 | } |
| 226 | |
| 227 | private trackExecution(promise: Promise<void>): void { |
| 228 | const trackedPromise = promise |
| 229 | .catch((error) => { |
| 230 | if (!this.errorFlag) { |
| 231 | this.errorFlag = true |
| 232 | this.executionError = toError(error) |
| 233 | } |
| 234 | }) |
| 235 | .finally(() => { |
| 236 | this.executing.delete(trackedPromise) |
| 237 | }) |
| 238 | this.executing.add(trackedPromise) |
| 239 | } |
| 240 | |
| 241 | private async waitForAnyExecution(): Promise<void> { |
| 242 | if (this.executing.size > 0) { |
no test coverage detected