This replaces the RetryState for a much simpler state object that exposes a simple method to get the next period to wait.
I believe this makes the code a lot easier to follow: WaitState is responsible for all time calculations and the retry decorators are responsible for handling the returned time periods.
Next step would be to start chaining exceptions.
This replaces the
RetryState
for a much simpler state object that exposes a simple method to get the next period to wait.I believe this makes the code a lot easier to follow:
WaitState
is responsible for all time calculations and the retry decorators are responsible for handling the returned time periods. Next step would be to start chaining exceptions.