Last active
January 13, 2021 16:00
-
-
Save makzimi/710ff02149f74747a2396117540c6f31 to your computer and use it in GitHub Desktop.
Example of how runBlocking can deadlock Android app if run on UI thread.
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
runBlocking(Dispatchers.Main) { | |
println("Hello, World!") | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment