Created
January 19, 2020 00:24
-
-
Save Rasalexman/1a0d5cd8158ac8cd1a03cb2101d6ca8f to your computer and use it in GitHub Desktop.
Convert example
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
liveData(context = viewModelScope.coroutineContext + Dispatcher.IO) { | |
emitSource(pagesRepository.getNextPageData(eventPageLiveData).asLiveData().map { | |
it.convertTo<MyUIModel>() | |
}) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment