                 guard let self = self else { return }
                 self.async {
                     signpost(self.log, self, "LoadImageData", .end, "Finished with size \(Formatter.bytes(self.data.count))")
-                    self.imageDataLoadingTaskDidFinish(error: error)
+                    self.dataTaskDidFinish(error: error)
                 }
             })
 

            self.resumableData = resumableData
        }

        signpost(self.log, self, "LoadImageData", .begin, "URL: \(urlRequest.url?.absoluteString ?? ""), resumable data: \(Formatter.bytes(resumableData?.data.count ?? 0))")

        let dataTask = configuration.dataLoader.loadData(
            with: urlRequest,
            didReceiveData: { [weak self] data, response in
                guard let self = self else { return }
                self.async {
                    self.imageDataLoadingTask(didReceiveData: data, response: response)
                }
            },
            completion: { [weak self] error in

        send(value: (data, response))
    }

    private func dataTaskDidFinish(error: Swift.Error?) {
        if let error = error {
            tryToSaveResumableData()
            send(error: .dataLoadingFailed(error))
