mirror of
https://github.com/yattee/yattee.git
synced 2026-11-02 18:07:19 +00:00
Let the sidebar's channels and playlists follow the data context
This commit is contained in:
@@ -40,6 +40,10 @@ protocol SubscriptionProvider: Sendable {
|
||||
/// Returns nil when the provider hasn't populated its cache yet.
|
||||
var cachedSubscriptionCount: Int? { get }
|
||||
|
||||
/// The subscribed channels known without a network fetch.
|
||||
/// Returns nil when the provider hasn't populated its cache yet.
|
||||
var cachedSubscriptions: [Channel]? { get }
|
||||
|
||||
/// Refreshes the local cache of subscriptions from the remote source.
|
||||
/// For local provider, this is a no-op.
|
||||
func refreshCache() async throws
|
||||
|
||||
Reference in New Issue
Block a user