Created
November 24, 2020 15:31
-
-
Save esilverberg/ff16539134f51a0a7c46b4bc36f385ec to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 🍎 | |
private(set) lazy var matchState = | |
Property<MatchState>(mutableMatchState) | |
let mutableMatchState: MutableProperty<MatchState> | |
private let eventPipe = Signal<Event, Never>.pipe() | |
var events: Signal<Event, Never> { | |
return eventPipe.output | |
} | |
// 🤖 | |
private val mutableMatchState = MutableLiveData<MatchState>() | |
val matchState: LiveData<MatchState> | |
get() = mutableMatchState | |
private val eventPubsub: PublishSubject<Event> = PublishSubject.create() | |
val events: Observable<Event> = eventPubsub |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment