From a7c1a99866d4419d26940f323a804c5057d1fd5f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gwendal=20Roue=CC=81?= Date: Sun, 31 Oct 2021 18:48:26 +0100 Subject: [PATCH] Fix wording --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 2ade954e6..9ed070eee 100644 --- a/README.md +++ b/README.md @@ -6190,7 +6190,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 @@ -6214,7 +6214,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