diff --git a/docs/index.md b/docs/index.md index 13ead24..7d04bab 100644 --- a/docs/index.md +++ b/docs/index.md @@ -159,6 +159,7 @@ The following back-off decorators are available: - [ExponentialBackOff](../src/ExponentialBackOff.php) - [DecorrelatedBackOff](../src/DecorrelatedBackOff.php) - [ImmediatelyThrowableBackOff](../src/ImmediatelyThrowableBackOff.php) +- [NullBackOff](../src/NullBackOff.php) ## Retry exceptions @@ -168,6 +169,7 @@ Configure BackOff and ExceptionClassifier to retry your business logic when an e $this->maxAttempts) { + throw $throwable; + } + } +} diff --git a/tests/NullBackOffTest.php b/tests/NullBackOffTest.php new file mode 100644 index 0000000..73f807b --- /dev/null +++ b/tests/NullBackOffTest.php @@ -0,0 +1,22 @@ +expectExceptionObject($throwable); + + $nullBackOff->backOff(4, $throwable); + } +}