function retry(buildId, numRetries, resolve) {
  if (numRetries < MAX_RETRIES_WHEN_PROCESSING) {
      // Retry with recursion with retries incremented
      return setTimeout(checkBuildStatus, 1000, buildId, numRetries + 1, resolve);
  } else {
      handleError('Retries exceeded. Exiting.');
  }
}
/**
 * Sent another request to the Percy server if the number of tries does not exceed the limit. 
 * @param {string} buildId Percy Build ID.
 * @param {number} numRetries The number of get build requests to the server.
 * @param {Function} resolve Promise resolve function.
 */
Sent another request to the Percy server if the number of tries does not exceed the limit.
@param {string} buildId Percy Build ID.
@param {number} numRetries The number of get build requests to the server.
@param {Function} resolve Promise resolve function.
Sent another request to the Percy server if the number of tries does not exceed the limit . @param { string } buildId Percy Build ID . @param { number } numRetries The number of get build requests to the server . @param { Function } resolve Promise resolve function .
function retry(buildId, numRetries, resolve) {
  if (numRetries < MAX_RETRIES_WHEN_PROCESSING) {
      return setTimeout(checkBuildStatus, 1000, buildId, numRetries + 1, resolve);
  } else {
      handleError('Retries exceeded. Exiting.');
  }
}
function retry ( buildId , numRetries , resolve ) { if ( numRetries < MAX_RETRIES_WHEN_PROCESSING ) { return setTimeout ( checkBuildStatus , 1000 , buildId , numRetries + 1 , resolve ) ; } else { handleError ( 'Retries exceeded. Exiting.' ) ; } }
Sent another request to the Percy server if the number of tries does not exceed the limit.
Sent another request to the Percy server if the number of tries does not exceed the limit .
// Retry with recursion with retries incremented