diff --git a/Documentation/GRDB5MigrationGuide.md b/Documentation/GRDB5MigrationGuide.md index 39ad4ab44..a2f0cd3dd 100644 --- a/Documentation/GRDB5MigrationGuide.md +++ b/Documentation/GRDB5MigrationGuide.md @@ -193,9 +193,10 @@ The changes can quite impact your application. We'll describe them below, as wel ```swift let observation = ValueObservation.tracking(Player.fetchAll) let cancellable = observation - .publisher(in: dbQueue) - // Opt in for immediate notification of the initial value - .scheduling(.immediate) + .publisher( + in: dbQueue, + // Opt in for immediate notification of the initial value + scheduling: .immediate) .sink(...) ``` @@ -207,9 +208,10 @@ The changes can quite impact your application. We'll describe them below, as wel ```swift let observation = ValueObservation.tracking(Player.fetchAll) let disposable = observation - .rx.observe(in: dbQueue) - // Opt in for immediate notification of the initial value - .scheduling(.immediate) + .rx.observe( + in: dbQueue, + // Opt in for immediate notification of the initial value + scheduling: .immediate) .subscribe(...) ``` diff --git a/TODO.md b/TODO.md index 7e66d6911..4fa161dad 100644 --- a/TODO.md +++ b/TODO.md @@ -62,7 +62,6 @@ - [ ] Cursor.underestimatedCount, which could speed up Array(cursor) and fetchAll() - [ ] Remove prefix from association keys when association name is namespaced: https://github.com/groue/GRDB.swift/issues/584#issuecomment-517658122 - [ ] Alternative support for custom SQLite builds, wih CocoaPods: https://github.com/CocoaPods/CocoaPods/issues/9103 -- [ ] Introduce a ValueObservation "mode" which lifts the guarantee that all changes are notified, but allows it to perform its initial fetch immediately when supported by a DatabasePool. Context: https://github.com/groue/GRDB.swift/issues/601#issuecomment-524545056 ## Unsure how