onReplica

abstract suspend fun onReplica(key: K, action: suspend PhysicalReplica<T>.() -> Unit)

Executes an action on a PhysicalReplica with a given key. If the replica doesn't exist it is created.