awaitRole

suspend fun awaitRole(id: NodeId, role: RaftRole, within: Duration = DEFAULT_AWAIT)

Suspend until node id holds role; fail fast with a state dump otherwise.