Use dedicated serial parsing queue instead of global queue to prevent unnecessary thread creation.

This commit is contained in:
Maurice Parker 2020-10-23 12:52:03 -05:00
parent 8cffd206ec
commit 7d940fed31
1 changed files with 1 additions and 1 deletions

View File

@ -407,7 +407,7 @@ private extension TwitterFeedProvider {
self.rateLimitReset = Date(timeIntervalSince1970: Double(reset) ?? 0)
}
DispatchQueue.global(qos: .background).async {
self.parsingQueue.async {
do {
let tweets: [TwitterStatus]
if isSearch {