commanded v0.10.0 Commanded.Commands.Handler behaviour
Summary
Callbacks
Apply the given command to the event-sourced aggregate root
Types
Callbacks
Apply the given command to the event-sourced aggregate root.
You must return a list containing the pending events, or nil
/ []
when no events produced.
You should return {:error, reason}
on failure.