Liking cljdoc? Tell your friends :D
Clojure only.

taia.state-machines.invoke

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.
raw docstring

invoke-eventclj

(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.
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