Liking cljdoc? Tell your friends :D

com.potetm.fusebox.cljs.retry


always-successcljs

source

disablecljs

(disable spec)
source

initcljs

(init {_r? :com.potetm.fusebox.cljs.retry/retry?
       _d :com.potetm.fusebox.cljs.retry/delay
       :as spec})

Initialize a retry.

spec is map containing: ::retry? - A predicate called after an exception to determine whether body should be retried. Takes three args: eval-count, exec-duration-ms, and the exception/failing value. ::delay - A function which calculates the delay in millis to wait prior to the next evaluation. Takes three args: eval-count, exec-duration-ms, and the exception/failing value. ::success? - (Optional) A function which takes a return value and determines whether it was successful. If false, body is retried. Defaults to (constantly true).

Initialize a retry.

spec is map containing:
  ::retry?   - A predicate called after an exception to determine
               whether body should be retried. Takes three args:
               eval-count, exec-duration-ms, and the exception/failing value.
  ::delay    - A function which calculates the delay in millis to
               wait prior to the next evaluation. Takes three args:
               eval-count, exec-duration-ms, and the exception/failing value.
  ::success? - (Optional) A function which takes a return value and determines
               whether it was successful. If false, body is retried.
               Defaults to (constantly true).
sourceraw docstring

resolve-aftercljs

(resolve-after ms)
source

shutdowncljs

(shutdown spec)
source

with-retryclj/smacro

(with-retry bindings|spec & [spec|body & body :as b])

Evaluates body which returns a promise, retrying according to the provided retry spec.

Evaluates body which returns a promise, retrying according to the provided
retry spec.
sourceraw docstring

with-retry*cljs

(with-retry* {succ? :com.potetm.fusebox.cljs.retry/success?
              retry? :com.potetm.fusebox.cljs.retry/retry?
              delay :com.potetm.fusebox.cljs.retry/delay
              :or {succ? always-success}
              :as spec}
             f)
source

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

× close