Use dedicated serial parsing queue instead of global queue to prevent unnecessary thread creation.
This commit is contained in:
parent
8cffd206ec
commit
7d940fed31
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue