From 7b5088b92128da155c2cae9c334753e84f261fa0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gwendal=20Roue=CC=81?= Date: Tue, 29 Mar 2016 13:10:11 +0200 Subject: [PATCH] DatabaseWriter documentation --- GRDB/Core/DatabaseWriter.swift | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/GRDB/Core/DatabaseWriter.swift b/GRDB/Core/DatabaseWriter.swift index c129d47a3..7aad6ecef 100644 --- a/GRDB/Core/DatabaseWriter.swift +++ b/GRDB/Core/DatabaseWriter.swift @@ -55,11 +55,12 @@ public protocol DatabaseWriter : DatabaseReader { /// DatabasePool.readFromWrite runs *block* asynchronously in a concurrent /// reader dispatch queue, and release the writing dispatch queue early, /// before the block has finished. In the example above, the insertion runs - /// concurrently with the select. + /// concurrently with the select (and yet the select is guaranteed not to + /// see the insertion). /// /// DatabaseQueue.readFromWrite simply runs *block* synchronously, and - /// returns when the block has completed: the insertion is run after the - /// select. + /// returns when the block has completed. In the example above, the + /// insertion is run after the select. func readFromWrite(block: (db: Database) -> Void) }