From c5aeec338532e9ba39149b4af12d244ab1e752ff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gwendal=20Roue=CC=81?= Date: Tue, 23 Mar 2021 18:33:02 +0100 Subject: [PATCH] Documentation --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index b06f971a9..88d2828b9 100644 --- a/README.md +++ b/README.md @@ -275,7 +275,7 @@ let observation = ValueObservation.tracking { db in try Place.fetchAll(db) } -// Start observation (Vanilla GRDB) +// Start observation let cancellable = observation.start( in: dbQueue, onError: { error in ... } @@ -285,12 +285,12 @@ let cancellable = observation.start( Ready-made support for Combine and RxSwift: ```swift -// Start observation (Combine) +// Combine let cancellable = observation.publisher(in: dbQueue).sink( receiveCompletion: { completion in ... }, receiveValue: { (places: [Place]) in print("Fresh places: \(places)") }) -// Start observation (RxSwift) +// RxSwift let disposable = observation.rx.observe(in: dbQueue).subscribe( onNext: { (places: [Place]) in print("Fresh places: \(places)") }, onError: { error in ... })