Метод | Описание | |
---|---|---|
__construct ( integer $retries = null, callable $retryFunction = null ) | ||
execute ( callable $function, array $arguments = [] ) : mixed | Executes the retry process. | |
setDelayFunction ( callable $delayFunction ) : void |
Метод | Описание | |
---|---|---|
calculateDelay ( integer $attempt ) : integer | Calculates exponential delay. |
public __construct ( integer $retries = null, callable $retryFunction = null ) | ||
$retries | integer | [optional] Number of retries for a failed request. |
$retryFunction | callable | [optional] returns bool for whether or not to retry |
public setDelayFunction ( callable $delayFunction ) : void | ||
$delayFunction | callable | |
Результат | void |