This explains better what i am trying to achieve ...
# coroutines
p
This explains better what i am trying to achieve Say in my onStart function i call a function to get some content as soon as the activity has started.. override fun onStart() { super.onStart() contentSelectionPresenter.getAvailableContent() } And in the presenter i want to do this.. override fun getAvailableContent() : List<ContentItem> { contentSelectionView.showProgress() // Needs to run on Main thread val availableContent = contentSelectionInteractor.getAvailableContent() // needs to run on worker thread contentSelectionView.hideProgress() // Needs to run on Main thread return availableContent }
l
Please, consider formatting code with triple backticks
Copy code
like(this)
next time. That helps people helping you read the code snippets you post.
BTW, you can still edit your message to add them.