sendAndWait

Sends request and answers with the result its wait plan ends with (CommandClient.wait).


fun sendAndWait(command: Any, id: String? = null): CommandResult

Sends command to the aggregate id names and answers with the result the default wait plan ends with.