expectVersion

fun expectVersion(version: Int)

The aggregate is at version after the command: the committed stream's, or the version it was at when the command appended nothing (changed nothing, or was rejected), as 9.x's expectStateAggregate { version } read it.