From e5b2be4346795c0443105a178e07f2cfa407c0ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gwendal=20Roue=CC=81?= Date: Tue, 7 Mar 2017 11:14:29 +0100 Subject: [PATCH] README.md --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 9c89345fa..69e904f2b 100644 --- a/README.md +++ b/README.md @@ -5132,6 +5132,8 @@ Those guarantees hold as long as you follow three rules: } // UNSAFE CONCURRENCY + // This method fails when some other thread is currently writing into + // the database. func currentUser() throws -> User? { let dbQueue = try DatabaseQueue(...) return try dbQueue.inDatabase { db in