mirror of
https://github.com/Ranchero-Software/NetNewsWire.git
synced 2025-01-04 13:59:23 +01:00
Add comment that Account is main-thread-only, and assert that we’re on the main thread in flattenedFeeds().
This commit is contained in:
parent
daaf44d67f
commit
590961fb2c
@ -17,6 +17,8 @@ import RSParser
|
||||
import ArticlesDatabase
|
||||
import RSWeb
|
||||
|
||||
// Main thread only.
|
||||
|
||||
public extension Notification.Name {
|
||||
static let AccountRefreshDidBegin = Notification.Name(rawValue: "AccountRefreshDidBegin")
|
||||
static let AccountRefreshDidFinish = Notification.Name(rawValue: "AccountRefreshDidFinish")
|
||||
@ -636,6 +638,7 @@ public final class Account: DisplayNameProvider, UnreadCountProvider, Container,
|
||||
// MARK: - Container
|
||||
|
||||
public func flattenedFeeds() -> Set<Feed> {
|
||||
assert(Thread.isMainThread)
|
||||
if flattenedFeedsNeedUpdate {
|
||||
updateFlattenedFeeds()
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user