title: iOS-SDWebImage ) Can I cancel sd_setImageWithURL in progress?
body: <p>I need some help.</p>
  
  <p>I use sd_setImageWithURL like tihs</p>
  
  <pre><code>     self.downloadButton.addTarget(self, action: #selector(self.stopDownloading), forControlEvents: .TouchUpInside)
  
      self.imageView.sd_setImageWithURL(NSURL(string:myURL!)!, placeholderImage: UIImage(named: "placeHolderImage"), options: SDWebImageOptions.ProgressiveDownload , progress: {
          (receivedSize: Int!, expectedSize: Int!) in
  
          if(receivedSize &gt; 0 )
          {
              self.percentString = String(format: "%.0f",(Float(receivedSize) / Float(expectedSize) * 100))
              [self.downloadProgress.setProgress(Float(receivedSize) / Float(expectedSize), animated: true)]
              self.downloadStateLabel.text = "\(receivedSize/1000000) / \(expectedSize/1000000)MB (\(self.percentString)%)"
              NSLog("%@", self.percentString)
          }
  
          }, completed: {
              (image, error, cacheType, url) in
              NSLog("Completed'");
  
      })
  </code></pre>
  
  <hr>
  
  <pre><code>func stopDownloading(sender: AnyObject)
  {
      NSLog("stopDownloading Clicked")
      self.imageView.sd_cancelCurrentImageLoad()
  
  }
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/9GgkD.png" rel="noreferrer"><img src="https://i.stack.imgur.com/9GgkD.png" alt="enter image description here"></a></p>
  
  <p>when I click Button I can get Log "stopDownloading Clicked" in stopDownloading function but sd_cancelCurrentImageLoad() didn't work.</p>
  
  <p>just keep downloading and I can get Completed Log.</p>
  
  <p>How can I stop downloading or cancel sd_setImageWithURL in progress ?? </p>
  
  <p>Thx.</p>