Created
February 11, 2019 16:24
-
-
Save wellingtoncosta/3b930c4a0b7c73344c6d084246c5b7d2 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() { | |
GlobalScope.launch(context = Dispatchers.Main) { | |
val orders = withContext(context = Dispatchers.IO) { | |
fetchOrders().await() | |
} | |
printOrders(orders) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment