Liking cljdoc? Tell your friends :D

state-flow.core


as-step-fnclj

(as-step-fn flow)

Transform a flow step into a state transition function

Transform a flow step into a state transition function
sourceraw docstring

description->stringclj

(description->string description)
source

flowcljmacro

(flow description & flows)

Defines a flow

Defines a flow
sourceraw docstring

get-descriptionclj

(get-description)
source

pop-metaclj

source

probeclj

(probe state check-fn)
(probe state
       check-fn
       {:keys [sleep-time times-to-try]
        :or {sleep-time sleep-time times-to-try times-to-try}})

evaluates state repeatedly with check-fn until check-fn succeeds or we try too many times

evaluates state repeatedly with check-fn until check-fn succeeds or we try too many times
sourceraw docstring

push-metaclj

(push-meta description)
source

retryclj

(retry times pred? lazy-seq)

Tries at most n times, returns a vector with true and first element that succeeded or false and result of the first try

Tries at most n times, returns a vector with true and first element that succeeded
or false and result of the first try
sourceraw docstring

runclj

(run flow initial-state)
source

run!clj

(run! flow initial-state)

Like run, but prints a log and throws error when flow fails with an exception

Like run, but prints a log and throws error when flow fails with an exception
sourceraw docstring

run*clj

(run* {:keys [init cleanup runner]
       :or {init (constantly {}) cleanup identity runner run!}}
      flow)

Run a flow with specified parameters

Receives optional parameter maps init, a function with no arguments that returns the initial state. cleanup, function receiving the final state to perform cleanup if necessary runner, function that will receive a flow and an initial state and execute the flow

Run a flow with specified parameters

Receives optional parameter maps
`init`, a function with no arguments that returns the initial state.
`cleanup`, function receiving the final state to perform cleanup if necessary
`runner`, function that will receive a flow and an initial state and execute the flow
sourceraw docstring

sleep-timeclj

source

string-expr?clj

(string-expr? x)
source

times-to-tryclj

source

update-descriptionclj

(update-description old new)
source

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

× close