• 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.exampleBasic01
7 
8 import kotlinx.coroutines.*
9 
<lambda>null10 fun main() = runBlocking { // this: CoroutineScope
11     launch { // launch a new coroutine and continue
12         delay(1000L) // non-blocking delay for 1 second (default time unit is ms)
13         println("World!") // print after delay
14     }
15     println("Hello") // main coroutine continues while a previous one is delayed
16 }
17