Skip to content

Commit cd76c83

Browse files
Add compiler check for nonisolated for pre-6 compilers.
1 parent 53f95b8 commit cd76c83

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Sources/DataConnect.swift

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,11 @@ public class DataConnect {
3535
)
3636

3737
// Instance store uses an internal queue to protect mutable state.
38-
// So marking it as
38+
#if compiler(>=6)
3939
private nonisolated(unsafe) static let instanceStore = InstanceStore()
40+
#else
41+
private static let instanceStore = InstanceStore()
42+
#endif
4043

4144
public enum EmulatorDefaults {
4245
public static let host = "127.0.0.1"

0 commit comments

Comments
 (0)