     private var currentCallback: ((Result) -> ())? = nil
     private var currentTask: URLSessionTask? = nil
     
-    private var canceled: Bool = false
+    private var isCancelled: Bool = false
     
     public convenience init(
         items: [Item],

    }
    
    private func download(_ item: Item, _ cached: IsCached, _ callback: @escaping (Result) -> ()) {
        guard !canceled else {
            callback(.cancel)
            return
        }

    
    public func cancel() {
        DispatchQueue.main.async {
            guard !self.isCancelled else { return }
            
            self.isCancelled = true
            self.currentTask?.cancel()
        }
    }
