Chapter 2 challenge solution

Task {
isDownloadActive = true
fileData = try await model.download(file: file)
isDownloadActive = false
}
this was the solution for the challenge in chapter 2, What I did was the above code and it worked. I feel like the solution is better but I don’t quit understand way @icanzilb
isDownloadActive = true
Task {
do {
fileData = try await model.download(file: file)
} catch { }
isDownloadActive = false
}