Mark AuthorAvatarDownloader as MainActor.

This commit is contained in:
Brent Simmons 2024-04-07 21:35:57 -07:00
parent a31f59670b
commit 52345724ce

View File

@ -15,7 +15,7 @@ extension Notification.Name {
static let AvatarDidBecomeAvailable = Notification.Name("AvatarDidBecomeAvailableNotification") // UserInfoKey.imageURL (which is an avatarURL)
}
final class AuthorAvatarDownloader {
@MainActor final class AuthorAvatarDownloader {
private let imageDownloader: ImageDownloader
private var cache = [String: IconImage]() // avatarURL: RSImage