Fix numerous concurrency warnings by marking things as Sendable or as MainActor.

This commit is contained in:
Brent Simmons
2024-04-02 22:07:19 -07:00
parent 40abf257a6
commit 3fea0f0758
21 changed files with 156 additions and 139 deletions

View File

@@ -14,7 +14,7 @@ struct HTMLMetadataDownloader {
static let serialDispatchQueue = DispatchQueue(label: "HTMLMetadataDownloader")
static func downloadMetadata(for url: String, _ completion: @escaping (RSHTMLMetadata?) -> Void) {
@MainActor static func downloadMetadata(for url: String, _ completion: @escaping (RSHTMLMetadata?) -> Void) {
guard let actualURL = URL(unicodeString: url) else {
completion(nil)
return