From 9f9804c8a3e68d3aa303cd8ebece0ecd9d1fae6c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gwendal=20Roue=CC=81?= Date: Sat, 12 Mar 2016 20:30:33 +0100 Subject: [PATCH] Documentation --- README.md | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/README.md b/README.md index 0ea77ab06..69036ac28 100644 --- a/README.md +++ b/README.md @@ -236,14 +236,6 @@ let pois = PointOfInterest.fetchAll(dbQueue) let poi = PointOfInterest.fetchOne(dbQueue, key: 1) ``` -Use the `inDatabase` method to perform safe iteration of memory-efficient [sequences](#fetching-methods) in a protected dispatch queue. `inDatabase` blocks the current thread during the execution of the closure argument: - -```swift -dbQueue.inDatabase { db in - for poi in PointOfInterest.fetch(db) { ... } -} -``` - As thread-safe as DatabaseQueue is, your multithreaded application should be well aware that two consecutive statements do not operate on a stable database state: ```swift @@ -302,14 +294,6 @@ let pois = PointOfInterest.fetchAll(dbPool) let poi = PointOfInterest.fetchOne(dbPool, key: 1) ``` -Use the `read` method to perform safe iteration of memory-efficient [sequences](#fetching-methods) in a protected dispatch queue. `read` blocks the current thread during the execution of the closure argument: - -```swift -dbPool.read { db in - for poi in PointOfInterest.fetch(db) { ... } -} -``` - As thread-safe as DatabaseQueue is, your multithreaded application should be well aware that two consecutive statements do not operate on a stable database state: ```swift