Event registry contains Event registry kv.
Event registry kv associates one event type to event execution.
Event registry contains Event registry kv. Event registry kv associates one event type to event execution. * [See entity](docs/archi/registry_entity.png)
(add-registry-stop response event)
Adds a stop reason at ::execution
if the registry entry is not found
Params:
response
event
Adds a stop reason at `::execution` if the registry entry is not found Params: * `response` * `event`
(get event-registry event)
Get the execution based on the type.
Params:
event-registry
is a map of event type to event executionevent
event which code will be executedReturns the execution function
state
future-events
event
scheduler-iteration
(i.e. a map with state
and future-events
)Get the execution based on the type. Params: * `event-registry` is a map of event type to event execution * `event` event which code will be executed Returns the execution function * with parameters: * `state` * `future-events` * `event` * Returns what changes in the `scheduler-iteration` (i.e. a map with `state` and `future-events`)
(schema)
Map associating event-type
to event-execution
.
An event execution is updating the state and may trigger some new events to be added in the future events. The result of the event execution could be dependent on the state or random variable.
Map associating `event-type` to `event-execution`. An event execution is updating the state and may trigger some new events to be added in the future events. The result of the event execution could be dependent on the state or random variable.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close