(async-retry f {:keys [max-retries retry-if backoff]})
Invokes f
, which should return a deferred. If it fails according to
the configuration, it is retried after a delay depending on the backoff
fn, which should return the number of msecs to wait for the next retry.
Invokes `f`, which should return a deferred. If it fails according to the configuration, it is retried after a delay depending on the `backoff` fn, which should return the number of msecs to wait for the next retry.
(constant-delay n)
Backoff fn that always returns the same interval
Backoff fn that always returns the same interval
(exponential-delay init)
Doubles delay on each invocation
Doubles delay on each invocation
(incremental-delay init increment)
Linearly increments delay, starting from an initial value
Linearly increments delay, starting from an initial value
(with-max f limit)
Wraps the given delay fn but caps the delay to given limit
Wraps the given delay fn but caps the delay to given limit
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close