Last active
February 18, 2021 00:46
-
-
Save recheej/17b3d7b20628be78d2237ccfad7a69c7 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
suspend fun foo() { | |
// let's assume called on main thread | |
delay(1000) // resume in 1 second | |
// we resumed after 1 second. which thread? that'll be answered in a future blog | |
println("foo completed") | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment