(as-step-fn flow)Transform a flow step into a state transition function
Transform a flow step into a state transition function
(run! flow initial-state)Like run, but prints a log and throws an error when the flow fails with an exception
Like run, but prints a log and throws an error when the flow fails with an exception
(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
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 |