Liking cljdoc? Tell your friends :D
All platforms.

fsm.protocols

Contains fsm protocol(s)

Contains fsm protocol(s)
raw docstring

StateMachineclj/sprotocol

-add-effectclj/s

(-add-effect _ key fn-3)

Add a side effect that is invoked when a change to state happens. Is called with the state machine, previous, and next state

Add a side effect that is invoked when a change to state happens. Is called with the state machine, previous, and next state

-current-stateclj/s

(-current-state _)

Return the current state of the state machine

Return the current state of the state machine

-transitionclj/s

(-transition _ event payload)

Transition the state machine to a new state

Transition the state machine to a new state
source

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

× close