Removes all pending facts.
Returns an ordered, read-only snapshot of pending facts.
Mutating a returned array cannot change the recorder.
A snapshot in record order
Appends an event reference to the pending facts in insertion order.
The event payload type
The fact raised by this aggregate
Removes the first pending reference that is strictly equal to event.
Event IDs are not collection identity; duplicate references are valid.
The exact event reference to remove
true when one matching reference was removed
Records domain facts raised by one aggregate during its current operation.
The recorder is local state only: application code decides when durable state is saved, whether pending events are dispatched or persisted, and when they are removed. It never publishes to an event bus itself.
Example
Since
0.6.0