persistAndPausePersistor method

void persistAndPausePersistor()

Persists the current state (if it's not yet persisted), then pauses the Persistor temporarily.

When persistAndPausePersistor is called, this will not affect the current persistence process, if one is currently running. If no persistence process was running, it will immediately start a new persistence process (ignoring Persistor.throttle).

Then, the Persistor will not start another persistence process, until method resumePersistor is called.

Note: A persistence process starts when the Persistor.persistDifference method is called, and finishes when the future returned by that method completes.

Implementation

void persistAndPausePersistor() {
  _processPersistence?.persistAndPause();
}