Liking cljdoc? Tell your friends :D

cognitect.aws.retry


capped-exponential-backoffclj

(capped-exponential-backoff base max-backoff max-retries)

Returns a function of the num-retries (so far), which returns the lesser of max-backoff and an exponentially increasing multiple of base, or nil when (>= num-retries max-retries). See with-retry to see how it is used.

Alpha. Subject to change.

Returns a function of the num-retries (so far), which returns the
lesser of max-backoff and an exponentially increasing multiple of
base, or nil when (>= num-retries max-retries).
See with-retry to see how it is used.

Alpha. Subject to change.
sourceraw docstring

default-backoffclj

Returns (capped-exponential-backoff 100 20000 3).

Alpha. Subject to change.

Returns (capped-exponential-backoff 100 20000 3).

Alpha. Subject to change.
sourceraw docstring

default-retriable?clj

A fn of http-response which returns true if http-response contains a cognitect.anomalies/category of :cognitect.anomalies/busy or :cognitect.anomalies/unavailable

Alpha. Subject to change.

A fn of http-response which returns true if http-response contains
a cognitect.anomalies/category of :cognitect.anomalies/busy or
:cognitect.anomalies/unavailable

Alpha. Subject to change.
sourceraw docstring

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

× close