Explorar el Código

use timeQueue for debounce timer

marv-out suggestion
Robert hace 7 meses
padre
commit
96bcc37a61
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      Trio/Sources/Services/WatchManager/GarminManager.swift

+ 1 - 1
Trio/Sources/Services/WatchManager/GarminManager.swift

@@ -1108,7 +1108,7 @@ final class BaseGarminManager: NSObject, GarminManager, Injectable, @unchecked S
     /// Total delay: ~4s from first CoreData save to Bluetooth transmission (faster than old 10s throttle)
     /// Total delay: ~4s from first CoreData save to Bluetooth transmission (faster than old 10s throttle)
     private func subscribeToDeterminationThrottle() {
     private func subscribeToDeterminationThrottle() {
         determinationSubject
         determinationSubject
-            .debounce(for: .seconds(2), scheduler: DispatchQueue.main)
+            .debounce(for: .seconds(2), scheduler: timerQueue)
             .sink { [weak self] data in
             .sink { [weak self] data in
                 guard let self = self else { return }
                 guard let self = self else { return }