The :controller proc of a component's flow: the state machine.
It reads events from the flow's in-chan (an in-port), builds the ctx the
event transitions from (domain.ctx: from the client's signals, or the
machine's initial state for a server event), runs the machine
(domain.event) and emits {:event :initial-ctx :ctx} on :to-view.
Nothing is kept between events.
The `:controller` proc of a component's flow: the state machine.
It reads events from the flow's in-chan (an in-port), builds the ctx the
event transitions from (`domain.ctx`: from the client's signals, or the
machine's initial state for a server event), runs the machine
(`domain.event`) and emits {:event :initial-ctx :ctx} on `:to-view`.
Nothing is kept between events.The proc launcher. Built once (a launcher is stateless until started) from
the step var, so a REPL redef reaches flows started afterwards.
The proc launcher. Built once (a launcher is stateless until started) from the `step` var, so a REPL redef reaches flows started afterwards.
(step)(step {:keys [in-chan] :as args})(step state _transition)(step state _in msg)Step fn of the :controller proc (see clojure.core.async.flow/process).
It keeps no state between events.
Step fn of the `:controller` proc (see `clojure.core.async.flow/process`). It keeps no state between events.
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 |