This commit is contained in:
Gwendal Roué committed 2021-10-24 17:05:10 +02:00
1 parent d73228a812
commit 909afc0233
1 file changed
+2 -2
+2 -2
View File
@@ -6215,8 +6215,8 @@ let sharedObservation = ValueObservation
> :point_up: **Note**: `ValueObservation` and `SharedValueObservation` are nearly identical, but there are a few differences you should be aware of:
>
> - `SharedValueObservation` has no [operator](#valueobservation-operators) such as `map`. As a replacement, you may use Combine apis:
>
> `swift`
>
> ```swift
> let sharedObservation = ValueObservation.tracking { ... }.shared(in: dbQueue)
> let cancellable = try sharedObservation
> .publisher() // Turn shared observation into a Combine Publisher