mirror of
https://github.com/Ranchero-Software/NetNewsWire.git
synced 2025-01-03 13:30:14 +01:00
Continue marking things as MainActor.
This commit is contained in:
parent
0fb5312139
commit
87db1e3d5f
@ -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 {
|
||||
|
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user