1 /* 2 * Copyright 2016-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license. 3 */ 4 5 // This file was automatically generated from coroutines-basics.md by Knit tool. Do not edit. 6 package kotlinx.coroutines.guide.exampleBasic05 7 8 import kotlinx.coroutines.* 9 <lambda>null10fun main() = runBlocking { 11 val job = launch { // launch a new coroutine and keep a reference to its Job 12 delay(1000L) 13 println("World!") 14 } 15 println("Hello") 16 job.join() // wait until child coroutine completes 17 println("Done") 18 } 19