New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
add ability to combine Schedules for retries #129
add ability to combine Schedules for retries #129
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Congratulations on your first contribution! 馃榿
I added a few minor comments. I'd also like @rucek to take a look. The names Combination
and CombinationForever
feel like something that could be expressed with better words, but I'm not sure what would do the job. Naming is hard 馃
Thanks for the contribution @zkerriga! This looks good too me, my only concerns are about the naming, which is indeed hard 馃槄. I think I was thinking about renaming |
|
Since we are bikeshedding on names (the PR looks good, @zkerriga , let's get it merged & released :) ), how about simply |
I agree that although |
#58
I tried to make proposed syntax:
but found
fallbackTo
method onRetryPolicy
a bit misleading, because with current design of retry classes we cannot easily compose differentResultPolicy
andonRetry
functions. Instead, I decided to make composable justSchedule
classes.I added
Combination
andCombinationForever
subclasses by analogy so we can combineFinite
schedules with bothFinite
andInfinite
fallbacks, but I have a feeling that they add an unreasonable complication 馃 - feel free to reject itP.S. it's my first opensource request