Created
August 13, 2018 00:35
-
-
Save jeziellago/9bd4a8cd84dae7e64da579a3921af042 to your computer and use it in GitHub Desktop.
This file contains 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
fun load() = launch(UI) { | |
try { | |
val result = withContext(CommonPool) { // work! } | |
... | |
} catch (e: IOException) { // exception que pode gerar | |
// exception here! | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment