object CommandHandler
The CommandHandler
defines how to act on commands. A CommandHandler
is
a function:
(State, Command) ⇒ Effect[Event, State]
The CommandHandler#command is useful for simple commands that don't need the state and context.
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- CommandHandler
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
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.