Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class TeamListPresenter {
- override fun loadTeams() {
- CoroutineScope(mainContext).launch {
- try {
- view.showloading()
- val result = NetworkClient.getTeams(IOContext)
- result.await()?.let {
- view.showTeamList(it)
- }
- } catch (e: Exception) {
- view.showError()
- }
- }
- }
- //...Rest of TeamListPresenter
- }
Add Comment
Please, Sign In to add comment