Liking cljdoc? Tell your friends :D

compute.gcp.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 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