* @param {NoHostAvailableError} err * @param {RequestExecution|null} execution
(err, execution)
| 281 | * @param {RequestExecution|null} execution |
| 282 | */ |
| 283 | handleNoHostAvailable(err, execution) { |
| 284 | if (execution !== null) { |
| 285 | // Remove the execution |
| 286 | const index = this._executions.indexOf(execution); |
| 287 | this._executions.splice(index, 1); |
| 288 | } |
| 289 | |
| 290 | if (this._executions.length === 0) { |
| 291 | // There aren't any other executions, we should report back to the user that there isn't |
| 292 | // a host available for executing the request |
| 293 | this.setCompleted(err); |
| 294 | } |
| 295 | } |
| 296 | |
| 297 | /** |
| 298 | * Gets a long lived closure that can fetch the next page. |
no test coverage detected