Liking cljdoc? Tell your friends :D

state-flow.labs.state

WARNING: This API is experimental and subject to changes.

WARNING: This API is experimental and subject to changes.
raw docstring

with-redefscljmacro

(with-redefs bindings & flows)

WARNING: with-redefs usage is not recommended. Use only if you know what you're doing and you are sure you can't achieve the same result without it.

Wraps the provided state-flow execution with clojure.core/with-redefs macro, e.g.

(defn now [] (java.util.Date.)) (def flow-with-trapped-time (labs.state/with-redefs [now (constantly #inst "2018-01-01")] (flow "a flow in 2018" ...)))

WARNING: `with-redefs` usage is not recommended. Use only if you know what you're
doing and you are sure you can't achieve the same result without it.

Wraps the provided state-flow execution with `clojure.core/with-redefs`
macro, e.g.

  (defn now [] (java.util.Date.))
  (def flow-with-trapped-time
    (labs.state/with-redefs
      [now (constantly #inst "2018-01-01")]
      (flow "a flow in 2018"
            ...)))
sourceraw docstring

wrap-withcljmacro

(wrap-with wrapper-fn flow)

WARNING: wrap-with usage is not recommended. Use only if you know what you're doing and you are sure you can't achieve the same result without it.

Wraps the provided state-flow execution. wrapper-fn will be passed a function that will run the flow when called.

WARNING: `wrap-with` usage is not recommended. Use only if you know what you're
doing and you are sure you can't achieve the same result without it.

Wraps the provided state-flow execution. `wrapper-fn` will be passed a
function that will run the flow when called.
sourceraw docstring

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

× close