sendAndWaitForSent

open fun <C : Any> sendAndWaitForSent(command: CommandMessage<C>): Mono<CommandResult>

Sends a command and waits until it is successfully sent to the command bus.

This convenience method waits for the command to be accepted by the command bus but does not wait for actual processing by the aggregate.

Return

a Mono emitting the CommandResult when the command is sent

Parameters

C

the type of the command

command

the command message to send

See also