terminate method

Future<void> terminate()

Terminates this FirebaseFirestore instance.

After calling terminate() only the clearPersistence() method may be used. Any other method will throw a FirebaseException.

Termination does not cancel any pending writes, and any promises that are awaiting a response from the server will not be resolved. If you have persistence enabled, the next time you start this instance, it will resume sending these writes to the server.

Note: Under normal circumstances, calling terminate() is not required. This method is useful only when you want to force this instance to release all of its resources or in combination with clearPersistence() to ensure that all local state is destroyed between test runs.


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