Skip to content

Commit

Permalink
Updated README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
denisyukphp committed Apr 24, 2021
1 parent c86d4dd commit c402e43
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ $backoff = new ExponentialBackoff($baseTime, $capTime, $maxAttempts);
$backoffTime = $backoff->generate($attempt = 4);

// float(16000)
$backoffTime->toMilliseconds();
$backoffTime->asMilliseconds();
```

To process cases when max attempts is already exceeded catch [LimitedAttemptsException](https://github.com/Orangesoft-Development/backoff/blob/main/src/Exception/LimitedAttemptsException.php):
Expand Down

0 comments on commit c402e43

Please sign in to comment.