object CommandHandler
Ordering
- Alphabetic
- By Inheritance
Inherited
- CommandHandler
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Value Members
- def command[Command, Event, State](commandHandler: (Command) => Effect[Event, State]): (State, Command) => Effect[Event, State]
Convenience for simple commands that don't need the state and context.
Convenience for simple commands that don't need the state and context.
- See also
Effect for possible effects of a command.
The
CommandHandler
defines how to act on commands. ACommandHandler
is a function:(State, Command) => Effect[Event, State]
The CommandHandler#command is useful for simple commands that don't need the state and context.