mirror of
https://github.com/groue/GRDB.swift
synced 2026-11-27 04:14:21 +00:00
BusyCallback is Sendable
This commit is contained in:
1 parent
63eb0b3f81
commit
bec785052f
1 file changed
+2
-2
@@ -1720,7 +1720,7 @@ extension Database {
|
||||
// MARK: - Database-Related Types
|
||||
|
||||
/// See BusyMode and <https://www.sqlite.org/c3ref/busy_handler.html>
|
||||
public typealias BusyCallback = (_ numberOfTries: Int) -> Bool
|
||||
public typealias BusyCallback = @Sendable (_ numberOfTries: Int) -> Bool
|
||||
|
||||
/// When there are several connections to a database, a connection may try
|
||||
/// to access the database while it is locked by another connection.
|
||||
@@ -1748,7 +1748,7 @@ extension Database {
|
||||
/// - <https://www.sqlite.org/c3ref/busy_handler.html>
|
||||
/// - <https://www.sqlite.org/lang_transaction.html>
|
||||
/// - <https://www.sqlite.org/wal.html>
|
||||
public enum BusyMode {
|
||||
public enum BusyMode: Sendable {
|
||||
/// The `SQLITE_BUSY` error is immediately returned to the connection
|
||||
/// that tries to access the locked database.
|
||||
case immediateError
|
||||
|
||||
Reference in new issue
Block a user