ElixirRetry Versions Save

Simple Elixir macros for linear retry, exponential backoff and wait with composable delays

v0.11.0

5 years ago
  • Deprecate exp_backoff and lin_backoff in favor of exponential_backoff and linear_backoff(thanks @bamorim for the bug report)
  • Add Elixir 1.7 support
  • Doc updates (thanks @skateinmars)

v0.10.0

6 years ago

BREAKING CHANGES

  • Change wait-then-else to wait-after-else
  • Introduce retry-after-else
  • Both macros now include
    • the result in the after clause
    • the error in the else clause

v0.9.0

6 years ago

Allow other atoms or atom-result tuples to be retried, courtesy of @rawkode.

v0.8.2

6 years ago

Allow rescue_only to be a runtime list, thanks to @jvoegele's PR.

v0.8.1

6 years ago

Make with option mandatory again.

v0.8

6 years ago
  • Consolidate whitelisted exceptions as an option
  • Tests now run faster
  • Phase out support for Elixir 1.3 and include 1.5

Credit to @fredwu for the PR.

v0.7

7 years ago

Now you can retry on a custom list of exceptions by specifying a list of errors as the first argument to the retry macro.

Thanks @neerfri for the contribution.

v0.6.1

7 years ago
  • Add initial_delay support to exp_backoff stream
  • Fix a number of Elixir 1.4 warnings

v0.6

7 years ago

Introducing a new wait-then-else macro that simplifies asynchronous workflows.

This release also introduces a couple of breaking changes

  • For simplicity, the wait macro no longer takes the with key for the delay stream.
  • The old, non-composable retry and backoff macros have been retired in favor of the newer composable counterparts.

v0.5

7 years ago

Introducing retry_while.