safwank / ElixirRetry

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

Is there a way to retry on any error? #14

Closed kagux closed 6 years ago

kagux commented 7 years ago

Hey,

First of all, thanks for great library! Today I faced a problem when I needed to retry on any error. It appears that I have to list all possibilities. Is that intentional or missing because no one needed this before?

safwank commented 7 years ago

You're correct, I personally haven't had a need for it. Retrying on any error sounds a bit dangerous to me. Mind telling me why you need to do that?

safwank commented 7 years ago

By the way, have you considered retry_while?