Add live synced days

This commit is contained in:
Alfonso Grillo
2023-01-25 15:12:19 +01:00
parent 1f953c8a93
commit 94ca5e3ccc
5 changed files with 41 additions and 11 deletions
@@ -31,4 +31,8 @@ protocol PollHistoryServiceProtocol {
/// Returns true every time the service can fetch another batch.
/// There is no guarantee the `nextBatch()` returned publisher will publish something anyway.
var hasNextBatch: Bool { get }
/// Publishes the date up to the service is synced (in the past).
/// This date doesn't need to be related with any poll event.
var fetchedUpTo: AnyPublisher<Date, Never> { get }
}