(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 builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |