for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Tarantool\JobQueue\Handler\RetryStrategy;
class ExponentialRetryStrategy implements RetryStrategy
{
private $base;
public function __construct(int $base = 60)
$this->base = $base;
}
public function getDelay(int $attempt): ?int
return $this->base ** $attempt;