stateIsOrderIndependent property

  1. @override
bool get stateIsOrderIndependent
override

Whether the state is the same whatever the order causally ready operations are applied in.

When it is, a remote change can be folded into the cached state in arrival order, instead of in the sorted order Handler.operations replays. The state has to be commutative under causal delivery: every ordering of the same causally ready changes must give the same state.

A host that resolves conflicts by replay order (e.g. last-write-wins on the position of an operation in the history) must leave it false, otherwise two peers that receive the same changes in a different order diverge. Such a host still takes the incremental path for a change that is newer than everything already folded in.

Implementation

@override
bool get stateIsOrderIndependent => true;