Skip to content

SnapshotPolicy

SnapshotPolicy<State, Event> = (seq, state, event) => boolean

Defined in: src/persistence/PersistentActor.ts:23

How often to take snapshots — called after every event apply. Returning true means “snapshot the current state”.

State

Event

number

State

Event

boolean