Change parsing dispatch queues to a more appropriate qos
This commit is contained in:
parent
89826e18c2
commit
01bab76cbb
|
@ -114,7 +114,7 @@ final class CloudKitArticlesZone: CloudKitZone {
|
|||
var newRecords = [CKRecord]()
|
||||
var deleteRecordIDs = [CKRecord.ID]()
|
||||
|
||||
DispatchQueue.global(qos: .userInitiated).async {
|
||||
DispatchQueue.global(qos: .utility).async {
|
||||
|
||||
for statusUpdate in statusUpdates {
|
||||
switch statusUpdate.record {
|
||||
|
|
|
@ -133,7 +133,7 @@ private extension CloudKitArticlesZoneDelegate {
|
|||
}
|
||||
|
||||
group.enter()
|
||||
DispatchQueue.global(qos: .userInitiated).async {
|
||||
DispatchQueue.global(qos: .utility).async {
|
||||
let parsedItems = records.compactMap { self.makeParsedItem($0) }
|
||||
let webFeedIDsAndItems = Dictionary(grouping: parsedItems, by: { item in item.feedURL } ).mapValues { Set($0) }
|
||||
|
||||
|
|
Loading…
Reference in New Issue