Created
December 28, 2018 12:31
-
-
Save DroidLove/8fa20b41f4e9bbd63b912421af31c248 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
GlobalScope.launch(Dispatchers.IO) { | |
try { | |
val request = retroApiInterface.getEmployeeListing() | |
val response = request.await().body() | |
handlingUI(response) | |
} catch (exception: Exception) { | |
Log.e("Retrofit Exception", exception.toString()) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment