Last active
April 25, 2021 02:46
-
-
Save ferazog/24081ffcfb78b216ef04261403619383 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 main() { | |
with(GlobalScope) { | |
launch(Dispatchers.IO) { // Establece que la coroutine se ejecute en un hilo de IO | |
// ... | |
} | |
GlobalScope.launch(Dispatchers.Main) { // Establece que la coroutine se ejecute en el UI Thread | |
// ... | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment