stream

fun <C : Any> CommandClient.stream(command: C, aggregateId: String? = null, block: CommandRequest.Builder<C>.() -> Unit = {}): Flow<CommandResult>

The results of command sent to the aggregate aggregateId names, with the fields block sets: CommandClient.stream of command's toCommandRequest.


fun <C : Any> CommandClient.stream(command: C, to: AggregateRef, block: CommandRequest.Builder<C>.() -> Unit = {}): Flow<CommandResult>

The results of command sent to the aggregate the ref to names; see stream of an id.