Merge branch 'development' into dev/async

This commit is contained in:
Gwendal Roué committed 2021-10-31 19:35:13 +01:00
commit ac94a2f90e
1 file changed
+2 -2
+2 -2
View File
@@ -6209,7 +6209,7 @@ let sharedObservation = ValueObservation
.shared(in: dbQueue, extent: .whileObserved)
// ~~~~~~~~~~~~~~~~~~~~~~
// Only stops observing the database when the shared observation is deallocated,
// Only stops observing the database when the shared observation is deinitialized,
// and all subscriptions are cancelled.
//
// This extent prevents the shared observation from recovering from database
@@ -6233,7 +6233,7 @@ let sharedObservation = ValueObservation
> .sink(...)
> ```
>
> - Unlike `ValueObservation`, `SharedValueObservation` prevents the database from closing. As long as there exists a `SharedValueObservation` instance, or an active suscription to a shared observation, the database connection won't close.
> - Unlike `ValueObservation`, `SharedValueObservation` retains the database connection. As long as there exists a `SharedValueObservation` instance, or an active suscription to a shared observation, the database connection won't be deinitialized.
### ValueObservation Performance