daily pastebin goal
28%
SHARE
TWEET

Untitled

a guest Jan 19th, 2019 60 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. class TeamListPresenter {
  2.     override fun loadTeams() {
  3.         CoroutineScope(mainContext).launch {
  4.             try {
  5.                 view.showloading()
  6.                 val result = NetworkClient.getTeams(IOContext)
  7.                 result.await()?.let {
  8.                     view.showTeamList(it)
  9.                 }
  10.             } catch (e: Exception) {
  11.                 view.showError()
  12.             }
  13.         }
  14.     }
  15.     //...Rest of TeamListPresenter
  16. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top