Skip to content

Commit

Permalink
Fix MediaRequestAuthenticator Core Data threading issue
Browse files Browse the repository at this point in the history
  • Loading branch information
kean committed May 10, 2024
1 parent 65bed38 commit 78189d1
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ class MediaRequestAuthenticator {
// MARK: - Request Authentication

/// Returns an authenticated request for the given URL and the media host.
@MainActor
func authenticatedRequest(for url: URL, host: MediaHost) async throws -> URLRequest {
try await withUnsafeThrowingContinuation { continuation in
authenticatedRequest(for: url, from: host) { request in
Expand Down

0 comments on commit 78189d1

Please sign in to comment.