You are here

private static function MiddlewareFactory::retryDelay in Lockr 7.3

Return value

callable

1 call to MiddlewareFactory::retryDelay()
MiddlewareFactory::retry in vendor/lockr/lockr/src/Guzzle/MiddlewareFactory.php

File

vendor/lockr/lockr/src/Guzzle/MiddlewareFactory.php, line 26

Class

MiddlewareFactory

Namespace

Lockr\Guzzle

Code

private static function retryDelay() {
  return function ($retries) {
    return 1000 * $retries + mt_rand(0, 300);
  };
}