Fix documentation typo

This commit is contained in:
Gwendal Roué committed 2019-11-29 09:00:45 +01:00
1 parent 15a97f2b2b
commit 129d2fae06
1 file changed
+2 -2
+2 -2
View File
@@ -7439,7 +7439,7 @@ let component = MyReadOnlyComponent(reader: dbQueue)
The `asyncRead` method can be used from any thread. It submits your database statements for asynchronous execution on a protected dispatch queue:
```swift
reader.asyncRead { (result: Result<Database>) in
reader.asyncRead { (result: Result<Database, Error>) in
try {
let db = try result.get()
let players = try Player.fetchAll(db)
@@ -7541,7 +7541,7 @@ try writer.asyncWriteWithoutTransaction { db in
// <- not in a transaction here
// Count players concurrently
writer.asyncConcurrentRead { (result: Result<Database>) in
writer.asyncConcurrentRead { (result: Result<Database, Error>) in
try {
let db = try result.get()
// Guaranteed to be zero