protected function doBackOff() { if ($this->maxBackOffPeriod == $this->minBackOffPeriod) { $period = 0; } else { $period = mt_rand(0, $this->maxBackOffPeriod - $this->minBackOffPeriod); } $this->sleeper->sleep($this->minBackOffPeriod + $period); }
protected function doBackOff() { $this->sleeper->sleep($this->backOffPeriod); }