Last active
August 26, 2020 22:03
-
-
Save GianpaMX/2545dd935350d0bc55a9a4c22c593c92 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
val viewState: LiveData<ClockViewState> = observeState() | |
.map { it.toViewState() } | |
.flowOn(defaultDispatcher) | |
.catch { errorChannel.send(it) } | |
.asLiveData(viewModelScope.coroutineContext) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment