Liking cljdoc? Tell your friends :D

taia.ds.state-machines.interface


Contextclj

Malli schema for the context map flowing through transitions (state + :memory).

Malli schema for the context map flowing through transitions (state + :memory).
sourceraw docstring

Eventclj

Malli schema for a transition event tuple [event-keyword params-map].

Malli schema for a transition event tuple [event-keyword params-map].
sourceraw docstring

MachineDefinitionclj

Malli schema for a machine definition map (:id, :initial, :states, :on).

Malli schema for a machine definition map (:id, :initial, :states, :on).
sourceraw docstring

make-machine-testableclj

Replaces named fn values in a machine with their vars so with-redefs can intercept them in tests.

Replaces named fn values in a machine with their vars so with-redefs can intercept them in tests.
sourceraw docstring

transitionclj

(transition machine from-state [event-name event-params])
(transition machine from-state [event-name event-params] opts)

Runs a state machine transition. Returns the updated context map containing the new state (under a configurable key, :_state by default) and :memory. The :invoke key is always stripped from the result. May throw if the machine has no matching transition for the event.

Runs a state machine transition. Returns the updated context map containing
the new state (under a configurable key, :_state by default) and :memory.
The :invoke key is always stripped from the result.
May throw if the machine has no matching transition for the event.
sourceraw docstring

TransitionOptsclj

Malli schema for transition options (:state-key, :trace-fn, :action-trace-fn).

Malli schema for transition options (:state-key, :trace-fn, :action-trace-fn).
sourceraw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
←Move to previous article
→Move to next article
Ctrl+/Jump to the search field
× close