StateFunction for managing queries.
StateFunction for managing queries. This is factored out so that it can be composed with the state-specific StateFunctions below, so that it is always available.
(Since version 2.4) use persistAll instead
(Since version 2.4) use persistAllAsync instead
Actor responsible for processing and persisting events within a scope.
When reading the code below, it's important to note that there are 3 distinct senses of the term event:
- External events -- the permanent events clients care about - Internal events -- represent all changes to the stored data, whether for internal use (transient) or external visibility (permanent) - Persistent FSM Events -- wrappers for internal events that bundle the stored data as well
In addition, there are 2 distinct senses of the idea of state:
- Persistent FSM state -- the two modes the actor can be in - Actor state -- the locally managed data