Liking cljdoc? Tell your friends :D

tank.retry


backoff-timeclj

(backoff-time slot-time-ms attempt)
source

genericclj

(generic sleep-fn retry-strategy max-attempts catch-fn proc)
source

with-exponential-backoffcljmacro

(with-exponential-backoff slot-time-ms max-attempts catch-fn & body)

Tries to run body for max-attempts. Uses an exponential backoff algorithm, meaning that, for every attempt, it will wait K * slot-time-ms, where K is 2^c - 1, c being the attempt index.

Tries to run `body` for `max-attempts`. Uses an exponential backoff algorithm, meaning
that, for every attempt, it will wait K * `slot-time-ms`, where K is `2^c -
1`, `c` being the attempt index.
sourceraw docstring

with-simple-sleepcljmacro

(with-simple-sleep sleep-ms max-attempts catch-fn & body)

Tries to run body for max-attempts. Between each attempt it will sleep for sleep-ms seconds.

Tries to run `body` for `max-attempts`. Between each attempt it will sleep for
`sleep-ms` seconds.
sourceraw docstring

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

× close