pausePersistor method

void pausePersistor()

Pause the Persistor temporarily.

When pausePersistor is called, the Persistor will not start a new persistence process, until method resumePersistor is called. This will not affect the current persistence process, if one is currently running.

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

Implementation

void pausePersistor() {
  _processPersistence?.pause();
}