Skip to content

Commit

Permalink
Fix MediaRequestAuthenticator Core Data threading issue (#23189)
Browse files Browse the repository at this point in the history
  • Loading branch information
kean committed May 13, 2024
2 parents 5cf6007 + 78189d1 commit c055c21
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 c055c21

Please sign in to comment.