use #if directives to conditionally @preconcurrency import the Dispatch module to enable building the package on linux

This commit is contained in:
Dianna committed 2024-09-29 21:44:34 +00:00
1 parent ed5f8c11ab
commit 5f2185a118
3 files changed
+9

No files matched your search

+3
View File
@@ -7,6 +7,9 @@ import SQLCipher
import SQLite3
#endif
#if !canImport(Darwin)
@preconcurrency
#endif
import Dispatch
import Foundation
+3
View File
@@ -1,3 +1,6 @@
#if !canImport(Darwin)
@preconcurrency
#endif
import Dispatch
/// SchedulingWatchdog makes sure that databases connections are used on correct
+3
View File
@@ -1,3 +1,6 @@
#if !canImport(Darwin)
@preconcurrency import Dispatch
#endif
import Foundation
// MARK: - Public