Continue marking things as MainActor.

This commit is contained in:
Brent Simmons 2024-03-25 12:48:02 -07:00
parent 0fb5312139
commit 87db1e3d5f
2 changed files with 3 additions and 4 deletions

View File

@ -15,10 +15,9 @@ import Core
protocol SmartFeedDelegate: SidebarItemIdentifiable, DisplayNameProvider, ArticleFetcher, SmallIconProvider {
var fetchType: FetchType { get }
@MainActor var fetchType: FetchType { get }
func unreadCount(account: Account) async -> Int
// func fetchUnreadCount(for: Account, completion: @escaping SingleUnreadCountCompletionBlock)
@MainActor func unreadCount(account: Account) async -> Int
}
extension SmartFeedDelegate {

View File

@ -13,7 +13,7 @@ import Account
// Main thread only.
struct StarredFeedDelegate: SmartFeedDelegate {
@MainActor struct StarredFeedDelegate: SmartFeedDelegate {
var sidebarItemID: SidebarItemIdentifier? {
return SidebarItemIdentifier.smartFeed(String(describing: StarredFeedDelegate.self))