An execution model that expects expressions a conditions to be CLJ(C) expressions or functions. It integrates with the data model so that return values of scripts/expressions can return transactions for the data model. It also requires the event queue so it can send error events back to the machine if the expression has an error.
An execution model that expects expressions a conditions to be CLJ(C) expressions or functions. It integrates with the data model so that return values of scripts/expressions can return transactions for the data model. It also requires the event queue so it can send error events back to the machine if the expression has an error.
(new-execution-model data-model event-queue)
Create a new execution model that expects state machine expressions to be (fn [env expr])
. Such expressions
can return arbitrary values, can use the data model from the env
to side-effect into the data model. If
an expression (NOT as a condition) returns a vector, then an attempt will be made to run it as a data model
transaction.
Create a new execution model that expects state machine expressions to be `(fn [env expr])`. Such expressions can return arbitrary values, can use the data model from the `env` to side-effect into the data model. If an expression (NOT as a condition) returns a vector, then an attempt will be made to run it as a data model transaction.
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 |