Simple Elixir macros for linear retry, exponential backoff and wait with composable delays
after
& else
clauses optional. Thanks @nathanalderson for the PR 🚀.quote
. Thanks @danadaldos for the PR.expiry/3
. Thanks @jtrees for the PR.reduce_while
to accept accumulator. Thanks @am-kantox for the PR.Remove System.stacktrace/0
in favour of __STACKTRACE__
@retry
function annotation. Thanks @bbalser for the PR.exp_backoff/1
and lin_backoff/2
wait
caused by false/nil
being matched separately. Thanks @jdenen for the PR.jitter/1
that adds random jitter to delays. Thanks @mononym for the PR.exponential_backoff/2
to override default factor. Thanks @fsword for the PR.expiry/3
to override default minimum delay. Thanks @x4lldux for the bug report.Fix Dialyzer pattern match warning. Thanks @legoscia for the PR.
Fix an arithmetic bug in exponential_backoff
involving large streams. Thanks @axelson for the bug report.