0) { usleep($initialWait * 1E6); return retry($callable, $expectedErrors, $maxRetries - 1, $initialWait * $exponent, $exponent); } // max retries reached throw $e; } }