purgeOutstandingWrites function

void purgeOutstandingWrites()

Drops writes that have not reached the server.

Their futures fail rather than hang, which is the point: an app that has given up on a write needs to hear that it will not land.

Implementation

void purgeOutstandingWrites() {
  if (fdbDbPurgeOutstandingWrites() != 0) {
    throw StateError('purgeOutstandingWrites before the app was initialized');
  }
}