applyChange method

void applyChange(
  1. Change change
)

Applies a change

A causal gap is the one failure a resync can close, so it is the only one answered with requestDocumentStatus: re-serving the same document would fail the same way for any other reason, and asking again is a loop rather than a recovery.

Anything else becomes a SyncFault. {@macro sync_fault_not_thrown}

Implementation

void applyChange(Change change) {
  if (_applyOne(change)) {
    requestDocumentStatus();
  }
}