|
|
@@ -443,9 +443,6 @@ extension CoreDataStack {
|
|
|
request.resultType = .managedObjectResultType
|
|
|
}
|
|
|
|
|
|
- context.name = "fetchContext"
|
|
|
- context.transactionAuthor = "fetchEntities"
|
|
|
-
|
|
|
/// we need to ensure that the fetch immediately returns a value as long as the whole app does not use the async await pattern, otherwise we could perform this asynchronously with backgroundContext.perform and not block the thread
|
|
|
return try context.performAndWait {
|
|
|
do {
|
|
|
@@ -497,9 +494,6 @@ extension CoreDataStack {
|
|
|
request.relationshipKeyPathsForPrefetching = prefetchKeyPaths
|
|
|
}
|
|
|
|
|
|
- context.name = "fetchContext"
|
|
|
- context.transactionAuthor = "fetchEntities"
|
|
|
-
|
|
|
return try await context.perform {
|
|
|
do {
|
|
|
if propertiesToFetch != nil {
|