From fafa74c246f6e264f58b77902abb3a5e37dc40d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gwendal=20Roue=CC=81?= Date: Tue, 22 Mar 2022 19:24:06 +0100 Subject: [PATCH] Fix ValueObservation.publisher documentation --- Documentation/Combine.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/Combine.md b/Documentation/Combine.md index b0694e2a4..40ae23061 100644 --- a/Documentation/Combine.md +++ b/Documentation/Combine.md @@ -227,7 +227,7 @@ This publisher has the same behavior as ValueObservation: - It notifies an initial value before the eventual changes. - It may coalesce subsequent changes into a single notification. - It may notify consecutive identical values. You can filter out the undesired duplicates with the `removeDuplicates()` Combine operator, but we suggest you have a look at the [removeDuplicates()](../README.md#valueobservationremoveduplicates) GRDB operator also. -- It stops emitting any value after the database connection is closed. But it never completes. +- It only completes when it is cancelled. - By default, it notifies the initial value, as well as eventual changes and errors, on the main thread, asynchronously. This can be configured with the `scheduling` argument. It does not accept a Combine scheduler, but a [ValueObservation scheduler](../README.md#valueobservation-scheduling).