     private var locationProvider: LocationProvider
     private var networkLayer: NetworkLayer
     private var idProvider: IDProvider
+
+    private var pathMonitorRef: AnyObject?
 
     private let operationQueue: OperationQueue = {
         let queue = OperationQueue()

        self.locationProvider = locationProvider
        self.networkLayer = networkLayer
        
        addUpdateOperation(with: interval)
    }


        }
    }
}

@available(iOS 12.0, *)
private extension RequestManager {
    func setupPathMonitor() {
        let monitor = NWPathMonitor()
        monitor.pathUpdateHandler = { [weak self] path in
            self?.handlePathUpdate(path)
        }
        monitor.start(queue: .main)
        
        pathMonitorRef = monitor
    }

    func handlePathUpdate(_ path: NWPath) {
        if path.status == .satisfied {
            let operation = operationQueue.operations.first
            if operation is WaitOperation {
                operation?.cancel()
            }
        }
    }
}
