We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ac636fa commit 94765bcCopy full SHA for 94765bc
Sources/PersistentContainerDependency/PersistentContainer.swift
@@ -74,7 +74,7 @@
74
public init(_ persistentContainer: NSPersistentContainer) {
75
let persistentContainer = UncheckedSendable(persistentContainer)
76
let isViewContextConfigured = LockIsolated(false)
77
-
+
78
let viewContext = { @Sendable in
79
let context = persistentContainer.viewContext
80
isViewContextConfigured.withValue { isConfigured in
@@ -85,7 +85,7 @@
85
}
86
return context
87
88
89
self._viewContext = viewContext
90
self._newBackgroundContext = {
91
persistentContainer.wrappedValue.newBackgroundContext()
0 commit comments