runIfAccepting

suspend fun <T : Any> runIfAccepting(partition: Int, command: suspend () -> T): T?

Runs command for partition when this node holds the partition and accepts commands for it, and returns what it returned; null, without running it, otherwise. A hand-off of the partition waits for the commands running here.