Networking with URLSession · Downloading Data | raywenderlich.com


This is a companion discussion topic for the original entry at https://www.raywenderlich.com/7476-networking-with-urlsession/lessons/13

Is it safe to call activeDownloads[sourceURL] = nil in saveDownload? It seems it could lead to memory corruption.

If it is something that could cause issues, then the safer thing to do would be run that statement in the completion handler. That said, it’s been awhile since I last looked at this project.