mirror of
https://github.com/groue/GRDB.swift
synced 2026-11-26 04:07:50 +00:00
Fix documentation typo
This commit is contained in:
1 parent
15a97f2b2b
commit
129d2fae06
1 file changed
+2
-2
@@ -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
|
||||
|
||||
Reference in new issue
Block a user