Liking cljdoc? Tell your friends :D

monkey.ci.retry


async-retryclj

(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.
sourceraw docstring

constant-delayclj

(constant-delay n)

Backoff fn that always returns the same interval

Backoff fn that always returns the same interval
sourceraw docstring

exponential-delayclj

(exponential-delay init)

Doubles delay on each invocation

Doubles delay on each invocation
sourceraw docstring

incremental-delayclj

(incremental-delay init increment)

Linearly increments delay, starting from an initial value

Linearly increments delay, starting from an initial value
sourceraw docstring

retryclj

(retry f {:keys [max-retries retry-if backoff]})

Similar to async-retry, but for regular functions.

Similar to `async-retry`, but for regular functions.
sourceraw docstring

with-maxclj

(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
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close