(wrap f opts)Wrap function f with synchronous retry. opts: :max-attempts — maximum number of attempts (default: 3) :backoff-ms — initial backoff in ms (default: 1000) :backoff-factor — exponential backoff multiplier (default: 2) :jitter — jitter coefficient 0.0-1.0 (default: 0.1) :retry? — return-value-based retry predicate (default: (constantly false))
Wrap function f with synchronous retry. opts: :max-attempts — maximum number of attempts (default: 3) :backoff-ms — initial backoff in ms (default: 1000) :backoff-factor — exponential backoff multiplier (default: 2) :jitter — jitter coefficient 0.0-1.0 (default: 0.1) :retry? — return-value-based retry predicate (default: (constantly false))
(wrap-async f opts)Wrap function f with asynchronous retry. Returns a core.async channel. Uses async/timeout inside a go-block, safe for use within go-blocks. opts are the same as wrap.
Wrap function f with asynchronous retry. Returns a core.async channel. Uses async/timeout inside a go-block, safe for use within go-blocks. opts are the same as wrap.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |