From a47fef9d19ec727813617bb12c2f4c951607be74 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gwendal=20Roue=CC=81?= Date: Sat, 12 Mar 2016 21:06:01 +0100 Subject: [PATCH] Documentation --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 6e164d904..a77f4c08f 100644 --- a/README.md +++ b/README.md @@ -2458,7 +2458,7 @@ let count1 = PointOfInterest.fetchCount(dbQueue) let count2 = PointOfInterest.fetchCount(dbQueue) ``` -It is easy to avoid nasty surprises: +It is easy to avoid surprises: The `inDatabase` and `inTransaction` methods run their closure argument in a protected dispatch queue, and block the current thread until your database statements are executed. They safely serialize the database accesses: @@ -2504,7 +2504,7 @@ let count1 = PointOfInterest.fetchCount(dbPool) let count2 = PointOfInterest.fetchCount(dbPool) ``` -It is easy to avoid nasty surprises: +It is easy to avoid surprises: The `write` and `writeInTransaction` methods run their closure argument in a protected dispatch queue, and block the current thread until your database statements are executed. They safely serialize the database updates: