Liking cljdoc? Tell your friends :D
Mostly clj/s.
Exceptions indicated.

com.fulcrologic.statecharts.event-queue.core-async-queue

A queue that uses core.async to give you single-session service with an external event queue. Send the queue the evts/cancel-event to exit your machine (without reaching the final state).

A queue that uses core.async to give you single-session service with an external event queue. Send
the queue the `evts/cancel-event` to exit your machine (without reaching the final state).
raw docstring

CoreAsyncQueuecljs

source

new-async-queueclj/s

(new-async-queue)

Creates an event queue that uses core.async to support async event delivery, delayed event processing, and external event queuing.

NOTE: At present this queue is tied to a single session, and cannot be used for multiple charts at the same time (to cross-communicate).

See run-event-loop!.

Creates an event queue that uses core.async to support async event delivery, delayed event processing,
and external event queuing.

NOTE: At present this queue is tied to a single session, and cannot be used for multiple charts at the
same time (to cross-communicate).

See `run-event-loop!`.
sourceraw docstring

run-event-loop!clj/s

(run-event-loop! processor wmem-atom session-id)

Initializes a new session using sp/start! on the processor and assigns it session-id. Then runs a continuous loop polling the event-queue for new events and processing them.

wmem-atom is an atom that will be updated with the latest working memory of the state machine, and allows you to look at the state of it from outside. It is safe to read the active states from ::sc/configuration of the working memory, but you should leverage the data-model protocol for interfacing with the data a machine might need to see or manipulate.

Returns a channel that will stay open until the session ends.

Initializes a new session using `sp/start!` on the processor and assigns it `session-id`.
Then runs a continuous loop polling the event-queue for new events and processing them.

`wmem-atom` is an atom that will be updated with the latest working memory of the state
machine, and allows you to look at the state of it from outside.  It is safe to read the active states
from ::sc/configuration of the working memory, but you should leverage the data-model protocol for
interfacing with the data a machine might need to see or manipulate.

Returns a channel that will stay open until the session ends.
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close