@@ -448,37 +448,35 @@ export class Firestore implements firestore.FirebaseFirestore, FirebaseService {
448
448
}
449
449
450
450
/**
451
- * Shuts down this Firestore instance.
452
- *
453
- * After shutdown only the `clearPersistence()` method may be used. Any other method
454
- * will throw a `FirestoreError`.
455
- *
456
- * To restart after shutdown, simply create a new instance of FirebaseFirestore with
457
- * `firebase.firestore()`.
458
- *
459
- * Shutdown does not cancel any pending writes and any promises that are awaiting a response
460
- * from the server will not be resolved. If you have persistence enabled, the next time you
461
- * start this instance, it will resume attempting to send these writes to the server.
462
- *
463
- * Note: Under normal circumstances, calling `shutdown()` is not required. This
464
- * method is useful only when you want to force this instance to release all of its resources or
465
- * in combination with `clearPersistence()` to ensure that all local state is destroyed
466
- * between test runs.
467
- *
468
- * @return A promise that is resolved when the instance has been successfully shut down.
469
- */
470
- // TODO(b/135755126): make this public.
471
- _shutdown ( ) : Promise < void > {
472
- ( this . app as _FirebaseApp ) . _removeServiceInstance (
473
- 'firestore'
474
- ) ;
475
- return this . INTERNAL . delete ( ) ;
476
- }
451
+ * Shuts down this Firestore instance.
452
+ *
453
+ * After shutdown only the `clearPersistence()` method may be used. Any other method
454
+ * will throw a `FirestoreError`.
455
+ *
456
+ * To restart after shutdown, simply create a new instance of FirebaseFirestore with
457
+ * `firebase.firestore()`.
458
+ *
459
+ * Shutdown does not cancel any pending writes and any promises that are awaiting a response
460
+ * from the server will not be resolved. If you have persistence enabled, the next time you
461
+ * start this instance, it will resume attempting to send these writes to the server.
462
+ *
463
+ * Note: Under normal circumstances, calling `shutdown()` is not required. This
464
+ * method is useful only when you want to force this instance to release all of its resources or
465
+ * in combination with `clearPersistence()` to ensure that all local state is destroyed
466
+ * between test runs.
467
+ *
468
+ * @return A promise that is resolved when the instance has been successfully shut down.
469
+ */
470
+ // TODO(b/135755126): make this public.
471
+ _shutdown ( ) : Promise < void > {
472
+ ( this . app as _FirebaseApp ) . _removeServiceInstance ( 'firestore' ) ;
473
+ return this . INTERNAL . delete ( ) ;
474
+ }
477
475
478
- get _isShutdown ( ) : boolean {
479
- this . ensureClientConfigured ( ) ;
480
- return this . _firestoreClient ! . clientShutdown ;
481
- }
476
+ get _isShutdown ( ) : boolean {
477
+ this . ensureClientConfigured ( ) ;
478
+ return this . _firestoreClient ! . clientShutdown ;
479
+ }
482
480
483
481
ensureClientConfigured ( ) : FirestoreClient {
484
482
if ( ! this . _firestoreClient ) {
0 commit comments