Remove CurrentValueSubject as protocol requirement (#807)

* Add CurrentValuePublisher

* Refactor to use CurrentValuePublisher

* Add comment
This commit is contained in:
Alfonso Grillo
2023-04-18 12:52:08 +02:00
committed by GitHub
parent 44def2277f
commit 9fe69acd20
7 changed files with 78 additions and 17 deletions
@@ -53,13 +53,13 @@ enum RoomSummary: CustomStringConvertible {
protocol RoomSummaryProviderProtocol {
/// Publishes the currently available room summaries
var roomListPublisher: CurrentValueSubject<[RoomSummary], Never> { get }
var roomListPublisher: CurrentValuePublisher<[RoomSummary], Never> { get }
/// Publishes the current state the summary provider is finding itself in
var statePublisher: CurrentValueSubject<RoomSummaryProviderState, Never> { get }
var statePublisher: CurrentValuePublisher<RoomSummaryProviderState, Never> { get }
/// Publishes the total number of rooms
var countPublisher: CurrentValueSubject<UInt, Never> { get }
var countPublisher: CurrentValuePublisher<UInt, Never> { get }
func updateVisibleRange(_ range: Range<Int>, timelineLimit: UInt)
}