Created
June 22, 2022 09:50
-
-
Save aqua30/dda8ddea119e6111a4daaaa6f6ac8593 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
| override fun onCreate(savedInstanceState: Bundle?) { | |
| super.onCreate(savedInstanceState) | |
| setContent { | |
| Text(text = "Hello Saurabh!") | |
| } | |
| runBlocking { // CoroutineScope | |
| Log.e("TAG","starting") | |
| delay(1000) // 1 sec | |
| Log.e("TAG","stopping") | |
| } | |
| Log.e("TAG","Printing normally on thread ${this.javaClass.name}") | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment