mirror of
https://github.com/JohnEstropia/CoreStore.git
synced 2026-01-19 07:27:02 +01:00
Merge branch 'develop' into corestore2_develop
# Conflicts: # CoreStore.podspec # CoreStore.xcodeproj/project.pbxproj # CoreStore/Setting Up/DataStack.swift # Sources/Info.plist
This commit is contained in:
@@ -414,7 +414,16 @@ public final class DataStack {
|
||||
deinit {
|
||||
|
||||
let coordinator = self.coordinator
|
||||
coordinator.persistentStores.forEach { _ = try? coordinator.removePersistentStore($0) }
|
||||
coordinator.performAsynchronously {
|
||||
|
||||
withExtendedLifetime(coordinator) { coordinator in
|
||||
|
||||
coordinator.persistentStores.forEach {
|
||||
|
||||
_ = try? coordinator.removePersistentStore($0)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user