Skip to content

Commit

Permalink
Refactor - ImageProvider SiteImageView extension is now also MainActor (
Browse files Browse the repository at this point in the history
  • Loading branch information
lmarceau authored Aug 16, 2024
1 parent a4cb6cf commit 18b6c0d
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ protocol ImageProvider {
}

extension NSItemProvider: ImageProvider {
@MainActor
func loadObject(ofClass aClass: NSItemProviderReading.Type) async throws -> UIImage {
return try await withCheckedThrowingContinuation { continuation in
loadObject(ofClass: aClass) { image, error in
Expand Down

0 comments on commit 18b6c0d

Please sign in to comment.