You are here

private function RetryMiddleware::doRetry in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/guzzlehttp/guzzle/src/RetryMiddleware.php \GuzzleHttp\RetryMiddleware::doRetry()
2 calls to RetryMiddleware::doRetry()
RetryMiddleware::onFulfilled in vendor/guzzlehttp/guzzle/src/RetryMiddleware.php
RetryMiddleware::onRejected in vendor/guzzlehttp/guzzle/src/RetryMiddleware.php

File

vendor/guzzlehttp/guzzle/src/RetryMiddleware.php, line 105

Class

RetryMiddleware
Middleware that retries requests based on the boolean result of invoking the provided "decider" function.

Namespace

GuzzleHttp

Code

private function doRetry(RequestInterface $request, array $options) {
  $options['delay'] = call_user_func($this->delay, ++$options['retries']);
  return $this($request, $options);
}