Liking cljdoc? Tell your friends :D

robert.bruce


*error*clj

source

*first-try*clj

source

*last-try*clj

source

*try*clj

source

alwaysclj

(always x)

:return? option (default): any return value indicates success

:return? option (default): any return value indicates success
sourceraw docstring

default-optionsclj

source

doubleclj

(double x)

decay option: 2^n

decay option: 2^n
sourceraw docstring

exponentialclj

(exponential x)

decay option: e^n

decay option: e^n
sourceraw docstring

falsey?clj

(falsey? x)

:return? option: only falsey return values indicate success

:return? option: only falsey return values indicate success
sourceraw docstring

golden-ratioclj

(golden-ratio x)

decay option: φ^n

decay option: φ^n
sourceraw docstring

init-optionsclj

(init-options options)
source

parseclj

(parse arg & args)

internal function that parses arguments into usable bits

internal function that parses arguments into usable bits
sourceraw docstring

resolve-catchclj

(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
sourceraw docstring

resolve-decayclj

(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
sourceraw docstring

resolve-keywordclj

(resolve-keyword k)

resolves k as a function named in this namespace

resolves k as a function named in this namespace
sourceraw docstring

resolve-returnclj

(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.
sourceraw docstring

retryclj

(retry options f)

internal function that will actually retry with the specified options

internal function that will actually retry with the specified
options
sourceraw docstring

truthy?clj

(truthy? x)

:return? option: only truthy return values indicate success

:return? option: only truthy return values indicate success
sourceraw docstring

try-again?clj

(try-again? options error)

internal function that determines whether we try again

internal function that determines whether we try again
sourceraw docstring

try-try-againclj

(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
sourceraw docstring

update-sleepclj

(update-sleep options)

internal function that updates sleep with the decay function

internal function that updates sleep with the decay function
sourceraw docstring

update-triesclj

(update-tries options)

internal function that updates the number of tries that remain

internal function that updates the number of tries that remain
sourceraw docstring

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

× close