mirror of
https://github.com/groue/GRDB.swift
synced 2026-11-26 04:07:50 +00:00
Merge branch 'development' into dev/async
This commit is contained in:
commit
ac94a2f90e
1 file changed
+2
-2
@@ -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
|
||||
|
||||
Reference in new issue
Block a user