The :controller proc of a component's flow: the state machine, one step
at a time.
An event from the flow's in-chan (an in-port) starts from the ctx
domain.ctx builds (the client's signals, or the machine's initial state
for a server event); an event back from the :invoke proc (:from-invoke)
steps on from the ctx it carries. Each step is taia.state-machines'
(taia.state-machines.flow/machine-transform): entering a state with an
:invoke sends it on :to-invoke; the step goes to the view on :to-view
when it is the last — or every step, in an :async? flow (a connected
component's). Nothing is kept between events: the ctx travels in the
messages.
The `:controller` proc of a component's flow: the state machine, one step at a time. An event from the flow's in-chan (an in-port) starts from the ctx `domain.ctx` builds (the client's signals, or the machine's initial state for a server event); an event back from the `:invoke` proc (`:from-invoke`) steps on from the ctx it carries. Each step is taia.state-machines' (`taia.state-machines.flow/machine-transform`): entering a state with an :invoke sends it on `:to-invoke`; the step goes to the view on `:to-view` when it is the last — or every step, in an `:async?` flow (a connected component's). Nothing is kept between events: the ctx travels in the messages.
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 |