(error: Error)
| 48 | } |
| 49 | |
| 50 | function rejectAllPending(error: Error): void { |
| 51 | for (const [id, pending] of pendingRequests.entries()) { |
| 52 | clearTimeout(pending.timeout) |
| 53 | pending.reject(error) |
| 54 | pendingRequests.delete(id) |
| 55 | } |
| 56 | } |
| 57 | |
| 58 | function hasNonRestartableRequest(): boolean { |
| 59 | for (const pending of pendingRequests.values()) { |
no test coverage detected