Skip to content

Commit a0212eb

Browse files
committed
[skip ci] Early mention of the async accesses
1 parent d5470b7 commit a0212eb

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -491,6 +491,8 @@ let newPlaceCount = try dbQueue.write { db -> Int in
491491
}
492492
```
493493

494+
See the [Concurrency] guide for asynchronous database accesses.
495+
494496
**A database queue serializes accesses to the database**, which means that there is never more than one thread that uses the database.
495497

496498
- When you don't need to modify the database, prefer the `read` method. It prevents any modification to the database.
@@ -548,6 +550,8 @@ let newPlaceCount = try dbPool.write { db -> Int in
548550
}
549551
```
550552

553+
See the [Concurrency] guide for asynchronous database accesses.
554+
551555
**Database pools allow several threads to access the database at the same time:**
552556

553557
- When you don't need to modify the database, prefer the `read` method, because several threads can perform reads in parallel.

0 commit comments

Comments
 (0)