safwank / ElixirRetry

Simple Elixir macros for linear retry, exponential backoff and wait with composable delays
Other
441 stars 32 forks source link

user can setup exponential_backoff's power #32

Closed fsword closed 5 years ago

fsword commented 5 years ago

We want to increase the retry interval exponentially, but this power index should be set by developer.

safwank commented 5 years ago

Thanks for the PR @fsword, I can see how this would be useful. Before I merge it, can you please make a small change? Instead of power, I think a more appropriate name would factor. If you can rename it, that would be awesome.

fsword commented 5 years ago

Thanks for the PR @fsword, I can see how this would be useful. Before I merge it, can you please make a small change? Instead of power, I think a more appropriate name would factor. If you can rename it, that would be awesome.

Ok, I already make the change.

safwank commented 5 years ago

Thanks for the PR @fsword.