메소드 | 설명 | |
---|---|---|
__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 |