An invoke turns its :src into an event for the state that holds it:
[:on-done result], or [:on-error ex-data] when :src throws an ex-info.
transition runs it when a step enters the state, and steps again with that
event, handled from the invoke's :on-done / :on-error like any other event.
An invoke turns its :src into an event for the state that holds it: [:on-done result], or [:on-error ex-data] when :src throws an ex-info. `transition` runs it when a step enters the state, and steps again with that event, handled from the invoke's :on-done / :on-error like any other event.
(invoke-event invoke-config ctx opts)Runs the invoke's :src (or the :trace-fn in opts in its place, called with
the invoke's :id, :src and ctx) on ctx and returns the event it raises.
Runs the invoke's :src (or the :trace-fn in `opts` in its place, called with the invoke's :id, :src and `ctx`) on `ctx` and returns the event it raises.
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 |