Okay. I have a similar setup, and basically, it's ...
# coroutines
k
Okay. I have a similar setup, and basically, it's done like the following:
Copy code
// Repository 
fun retreiveUserInfo(userId: String): Deferred<UserInfo>

// Presenter
fun loadUserInfo(userId: String) = launch(UI) {
  val deferred = repository.retreiveUserInfo(userId)
  view.showUserInfo(deferred.await())
}

// View
Calls presenter
Renders the user info
Is this something that can work for you?