From 1a76eb7b9769b2bc2c30ceb57951a1893a8d7582 Mon Sep 17 00:00:00 2001 From: Serhiy Mytrovtsiy Date: Wed, 28 Jun 2023 19:00:02 +0200 Subject: [PATCH] fix: moved Repeater thread from background QoS to default. Because the background thread will be blocked when full load. It makes the app unuseful when the system is loaded because the reader is not triggered and there is no live data about system usage. --- Kit/plugins/Repeater.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Kit/plugins/Repeater.swift b/Kit/plugins/Repeater.swift index 4a670280..b7fc7ceb 100644 --- a/Kit/plugins/Repeater.swift +++ b/Kit/plugins/Repeater.swift @@ -20,7 +20,7 @@ public class Repeater { private var callback: (() -> Void) private var state: State = .paused - private var timer: DispatchSourceTimer = DispatchSource.makeTimerSource(queue: DispatchQueue(label: "eu.exelban.Stats", qos: .background)) + private var timer: DispatchSourceTimer = DispatchSource.makeTimerSource(queue: DispatchQueue(label: "eu.exelban.Stats.Repeater", qos: .default)) public init(seconds: Int, callback: @escaping (() -> Void)) { self.callback = callback