xref: /aosp_15_r20/external/kotlinx.coroutines/kotlinx-coroutines-core/jvm/test/guide/example-basic-03.kt (revision 7a7160fed73afa6648ef8aa100d4a336fe921d9a)
1 // This file was automatically generated from coroutines-basics.md by Knit tool. Do not edit.
2 package kotlinx.coroutines.guide.exampleBasic03
3 
4 import kotlinx.coroutines.*
5 
<lambda>null6 fun main() = runBlocking {
7     doWorld()
8 }
9 
doWorldnull10 suspend fun doWorld() = coroutineScope {  // this: CoroutineScope
11     launch {
12         delay(1000L)
13         println("World!")
14     }
15     println("Hello")
16 }
17