Retryable_ex: simple code retrying without metaprogramming

Here’s why I made my another retrying lib:

  • Simple (modeled after Ruby’s retryable gem)
  • No metaprogramming
  • Importing does not clutter your namespace
  • User specified default configuration
  • User specified named configurations
  • Fully documented
  • Complete test suite

https://hex.pm/packages/retryable_ex

https://hexdocs.pm/retryable_ex/

https://github.com/cjbottaro/retryable_ex

8 Likes

That’s a huge feature! :slight_smile:

I also liked the “named configurations”.

Sometime ago I was looking for a package like this, but all the packages I’ve found were or “too magic” or “too javascripty”.

Thanks for the package, will definitely use it when I get to a retry logic again.

2 Likes

This does look pretty good. Thanks for this.

1 Like

This is interesting. Nice job.

I needed the same thing. And being pretty new to Elixir, I decided to implement it before searching for a solution.

I came up with this: https://gist.github.com/trbngr/051684fc2b302becdf46b3e68b3b113e

One thing I didn’t think about was handling exceptions.

EDIT: I handle exceptions now.

1 Like