yxorP Documentation

RetryMiddleware
in package

Table of Contents

$decider  : mixed
$delay  : mixed
$nextHandler  : mixed
__construct()  : mixed
__invoke()  : mixed
exponentialDelay()  : float|int
doRetry()  : mixed
onFulfilled()  : Closure
onRejected()  : Closure

Properties

Methods

__construct()

public __construct(callable $decider, callable $nextHandler[, callable $delay = null ]) : mixed
Parameters
$decider : callable
$nextHandler : callable
$delay : callable = null
Return values
mixed

exponentialDelay()

public static exponentialDelay(mixed $retries) : float|int
Parameters
$retries : mixed
Return values
float|int

Search results