(always x)
:return? option (default): any return value indicates success
:return? option (default): any return value indicates success
(falsey? x)
:return? option: only falsey return values indicate success
:return? option: only falsey return values indicate success
(parse arg & args)
internal function that parses arguments into usable bits
internal function that parses arguments into usable bits
(resolve-catch options)
internal function that resolves the value of the :catch in options to a collection of exceptions to catch
internal function that resolves the value of the :catch in options to a collection of exceptions to catch
(resolve-decay {d :decay :as options})
internal function that resolves the value of :decay in options to a decay strategy: a function that accepts a current time delay milliseconds in and returns a new time delay milliseconds
internal function that resolves the value of :decay in options to a decay strategy: a function that accepts a current time delay milliseconds in and returns a new time delay milliseconds
(resolve-keyword k)
resolves k as a function named in this namespace
resolves k as a function named in this namespace
(resolve-return {r :return? :as options})
internal function that resolves the value of :return? in options to a return? filter: a function that accepts a candidate return value and returns truthy to approve it being returned or falsey to request a retry.
internal function that resolves the value of :return? in options to a return? filter: a function that accepts a candidate return value and returns truthy to approve it being returned or falsey to request a retry.
(retry options f)
internal function that will actually retry with the specified options
internal function that will actually retry with the specified options
(truthy? x)
:return? option: only truthy return values indicate success
:return? option: only truthy return values indicate success
(try-again? options error)
internal function that determines whether we try again
internal function that determines whether we try again
(try-try-again fn)
(try-try-again options fn)
(try-try-again fn & args)
(try-try-again options fn & args)
if at first you don't succeed, intelligent retry trampolining
if at first you don't succeed, intelligent retry trampolining
(update-sleep options)
internal function that updates sleep with the decay function
internal function that updates sleep with the decay function
(update-tries options)
internal function that updates the number of tries that remain
internal function that updates the number of tries that remain
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close