waitForPendingWrites method

Future<void> waitForPendingWrites()

Waits until all currently pending writes for the active user have been acknowledged by the backend.

The returned Future resolves immediately if there are no outstanding writes. Otherwise, the Promise waits for all previously issued writes (including those written in a previous app session), but it does not wait for writes that were added after the method is called. If you want to wait for additional writes, call waitForPendingWrites again.

Any outstanding waitForPendingWrites calls are rejected during user changes.


Future<void> waitForPendingWrites() {
  return _delegate.waitForPendingWrites();