Networking with URLSession · Downloading Data |

This is a companion discussion topic for the original entry at

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.