From 6053c58334f9c64388d3e1e0d66393551b041143 Mon Sep 17 00:00:00 2001 From: Brent Simmons Date: Sat, 6 Apr 2024 19:01:13 -0700 Subject: [PATCH] Mark DownloadWithCacheManager as MainActor. --- Web/Sources/Web/OneShotDownload.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Web/Sources/Web/OneShotDownload.swift b/Web/Sources/Web/OneShotDownload.swift index dc03d786f..98f811fc8 100755 --- a/Web/Sources/Web/OneShotDownload.swift +++ b/Web/Sources/Web/OneShotDownload.swift @@ -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()