Use a DispatchSemaphore | raywenderlich.com


This is a companion discussion topic for the original entry at https://www.raywenderlich.com/9461083-ios-concurrency-with-gcd-and-operations/lessons/15

I’m enjoying the course thus far! However, I believe the starter folder from the materials for this video has the final code.

thanks Andrew! I’ve updated the repo and asked the editor to update the Download Materials here.

Great course, thank you!

I think in this vide that subsequent calls to download the images go very very quickly because it’s using a cached response. If instead of using the shared url session, we use an ephemeral one, the images are downloaded fresh each time:

let configuration = URLSessionConfiguration.ephemeral
let session = URLSession(configuration: configuration)

session.dataTask(with: url) { data, response, error in