Skip to content

Commit be9740b

Browse files
committed
Discourage usage of reentrant by linking to the related doc
1 parent f914fe7 commit be9740b

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

GRDB/Core/DatabaseReader.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,9 @@ public protocol DatabaseReader: AnyObject, Sendable {
277277
///
278278
/// This method can be called from other database access methods. Reentrant
279279
/// database accesses are discouraged, though, because they muddle
280-
/// transaction boundaries.
280+
/// transaction boundaries
281+
/// (see <doc:Concurrency#Rule-2:-Mind-your-transactions> for
282+
/// more information).
281283
///
282284
/// For example:
283285
///

GRDB/Core/DatabaseWriter.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,8 @@ public protocol DatabaseWriter: DatabaseReader {
217217
/// This method can be called from other database access methods. Reentrant
218218
/// database accesses are discouraged, though, because they muddle
219219
/// transaction boundaries.
220+
/// (see <doc:Concurrency#Rule-2:-Mind-your-transactions> for
221+
/// more information).
220222
///
221223
/// For example:
222224
///

0 commit comments

Comments
 (0)