Mark DownloadWithCacheManager as MainActor.

This commit is contained in:
Brent Simmons 2024-04-06 19:01:13 -07:00
parent 504ebc7b45
commit 6053c58334
1 changed files with 1 additions and 1 deletions

View File

@ -126,7 +126,7 @@ private struct CallbackRecord {
let completion: OneShotDownloadCallback
}
private final class DownloadWithCacheManager {
@MainActor private final class DownloadWithCacheManager {
static let shared = DownloadWithCacheManager()
private var cache = WebCache()