diff --git a/GRDB/ValueObservation/SharedValueObservation.swift b/GRDB/ValueObservation/SharedValueObservation.swift index b96de7161..bb5259b94 100644 --- a/GRDB/ValueObservation/SharedValueObservation.swift +++ b/GRDB/ValueObservation/SharedValueObservation.swift @@ -26,6 +26,8 @@ extension ValueObservation { /// database observation for all subscriptions, and thus spares /// database resources. /// + /// [**Experimental**](http://github.com/groue/GRDB.swift#what-are-experimental-features) + /// /// For example: /// /// let sharedObservation = ValueObservation @@ -88,6 +90,8 @@ extension ValueObservation { } } +/// [**Experimental**](http://github.com/groue/GRDB.swift#what-are-experimental-features) +/// /// A shared value observation that shares a single underlying database /// observation for all subscriptions, and thus spares database resources. /// diff --git a/README.md b/README.md index 6f410bd94..24a0bc94b 100644 --- a/README.md +++ b/README.md @@ -6134,6 +6134,8 @@ See also [ValueObservation.handleEvents](#valueobservationhandleevents). ### ValueObservation Sharing +[**:fire: EXPERIMENTAL**](#what-are-experimental-features) + **Sharing a ValueObservation allows several components of your app to be notified of database changes, in an efficient way.** A shared observation spares database resources. For example, when a database change happens, a fresh value is fetched only once, and then notified to all subscriptions.