Liking cljdoc? Tell your friends :D
All platforms.

prpr3.promise.retry


retryclj/s

(retry f log-description max-retries delay-ms)

execute a fn repeatedly until it succeeds

  • f - a 0-args function, yielding a promise
  • max-retries - maximum number of times to re-try f before giving up (if 0 then f will be invoked just once)
  • delay-ms - delay between invocations of f
execute a fn repeatedly until it succeeds
- f - a 0-args function, yielding a promise
- max-retries - maximum number of times to re-try f before
                giving up (if 0 then f will be invoked just once)
- delay-ms - delay between invocations of f
sourceraw docstring

retry-nclj/s

(retry-n f log-description max-retries delay-ms)
source

retry-n*clj/s

(retry-n* f log-description max-retries delay-ms)

execute a fn repeatedly until it succeeds

  • f - a 1-args function of try-count, yielding a promise
  • max-retries - maximum number of times to re-try f before giving up (if 0 then f will be invoked just once)
  • delay-ms - delay between invocations of f
execute a fn repeatedly until it succeeds
- f - a 1-args function of try-count, yielding a promise
- max-retries - maximum number of times to re-try f before
                giving up (if 0 then f will be invoked just once)
- delay-ms - delay between invocations of f
sourceraw docstring

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

× close