 
 import os.log
 import UIKit
+import Network
 
 public class RequestManager {
     private struct SendMessagePostBody: Codable {

    private var locationProvider: LocationProvider
    private var networkLayer: NetworkLayer
    private var idProvider: IDProvider

    private let operationQueue: OperationQueue = {
        let queue = OperationQueue()

        }
    }
}

@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()
            }
        }
    }
}
