Created
March 28, 2021 09:33
-
-
Save le0nidas/024dd777cec4ad2fe527b266ef4b78ad 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(): Unit = runBlocking { | |
launch { | |
print("1 ") | |
print("2 ") | |
print("3 ") | |
suspendCoroutine<Unit> { continuation -> | |
print("... ") | |
continuation.resume(Unit) | |
} | |
print("4 ") | |
println("Done!") | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment