README.md

This commit is contained in:
Gwendal Roué committed 2017-03-07 11:14:29 +01:00
1 parent 4cea442b59
commit e5b2be4346
1 file changed
+2
+2
View File
@@ -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