Created
March 8, 2022 02:34
-
-
Save KhomDrake/474f0b0c9dc49f62a3f2d8680460f689 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
requestScope.launch(Dispatchers.Main) { | |
val moviesComedy = async(Dispatchers.IO) { loadMovies("Comedy") } | |
val moviesAction = async(Dispatchers.IO) { loadMovies("Action") } | |
showMoviesGenres(listOf(moviesComedy.await(), moviesAction.await()) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment