title: Firebase Download Task Queue Swift
body: <p>I am currently downloading image files from Firebase Storage with the code below for the thumbnails in a <code>UICollectionView</code>.When I tap on one of the thumbnails, the app segues to another <code>UIViewController</code> that then downloads more images from Firebase Storage.
  Currently the app waits for all of the thumbnails to finish downloading before downloading the next images in the <code>UIViewController</code>. Is it possible to increase the priority of the new images in the <code>UIViewController</code> or cancel all other downloads to start the new ones immediately?</p>
  
  <pre><code>var imageRef = storageRef.child("Thumbnails/\(itemID).jpg")
  imageRef.getData(maxSize: 10 * 1024 * 1024) { data, error 
      if let error = error {
          // Uh-oh, an error occurred!
          print("Error: \(error.localizedDescription)")
       } else {
          let image = UIImage(data: data!)
          self.newsNameArray.append(name)
          self.newsImageArray.append(image!)
          self.newsBarCollectionView?.reloadData()                        
        }
  }
  </code></pre>
  
  <p>Thank you</p>