public static function RetryMiddleware::exponentialDelay in Lockr 7.3
Default exponential backoff delay function.
Parameters
$retries:
Return value
int
File
- vendor/
guzzlehttp/ guzzle/ src/ RetryMiddleware.php, line 49
Class
- RetryMiddleware
- Middleware that retries requests based on the boolean result of invoking the provided "decider" function.
Namespace
GuzzleHttpCode
public static function exponentialDelay($retries) {
return (int) pow(2, $retries - 1);
}