lib/RestClient.js
function rejectAll(requests, error) {
  for (const request of requests) {
    request.abort();
    request.reject(error);
  }
}
function rejectAll(requests, error) {
  for (const request of requests) {
    request.abort();
    request.reject(error);
  }
}
function rejectAll ( requests , error ) { for ( const request of requests ) { request . abort ( ) ; request . reject ( error ) ; } }
Rejects all requests with the given error.

If the request is running, it will be aborted.

@private
@param {Set} requests The list of requests to reject
@param {Error} error The reject's error
Rejects all requests with the given error .