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

throttleclj

(throttle f & [{:keys [retries max-delay] :or {retries 10 max-delay 60000}}])

Convenience function that retries the request if it returns a 429 (too many requests) with maximum 10 invocations and a max delay of 60 seconds.

Convenience function that retries the request if it returns a 429 (too many requests)
with maximum 10 invocations and a max delay of 60 seconds.
sourceraw docstring

too-many-requests?clj

(too-many-requests? r)
source

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 builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close