• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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.exampleBasic02
7 
8 import kotlinx.coroutines.*
9 
<lambda>null10 fun main() = runBlocking { // this: CoroutineScope
11     launch { doWorld() }
12     println("Hello")
13 }
14 
15 // this is your first suspending function
doWorldnull16 suspend fun doWorld() {
17     delay(1000L)
18     println("World!")
19 }
20