commanded v0.10.0 Commanded.Commands.Dispatcher

Summary

Functions

Dispatch the given command to the handler module for the aggregate root as identified

Functions

dispatch(payload)
dispatch(payload :: struct) :: :ok | {:error, reason :: term}

Dispatch the given command to the handler module for the aggregate root as identified

Returns :ok on success, or {:error, reason} on failure.