execute

suspend fun execute(model: AggregateModel<*>, command: Command<*>): CommandResult

Executes command on model's aggregate and returns the result it ends its wait with: the last one stream would emit. It runs in this coordinator's execution context as stream does, without the channel and producer coroutine a flow moved to another context takes: a caller that wants the final result only pays for that.