Execute the given side effect callback after events, if any, are persisted.
Execute the given side effect callback after events, if any, are persisted. Side effect callback are always called, also when no events are emitted.
Execute the given side effect callback after events, if any, are persisted.
Execute the given side effect callback after events, if any, are persisted. Side effect callback are always called, also when no events are emitted.
A command handler returns a
Persist
directive that defines what event or events to persist. Use thethenPersist
,thenPersistAll
methods of the context that is passed to the command handler function to create thePersist
directive.Additional side effects after successful persist can be performed in the callback
andThen