blob: 52b490d2b7d16b7469008c4727b9ec4f91fd3e02 [file] [log] [blame]
Roman Elizarovf16fd272017-02-07 11:26:00 +03001/*
Roman Elizarov660c2d72020-02-14 13:18:37 +03002 * Copyright 2016-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
Roman Elizarovf16fd272017-02-07 11:26:00 +03003 */
4
Aurimas Liutikasc8879d62021-05-12 21:56:16 +00005// This file was automatically generated from basics.md by Knit tool. Do not edit.
Roman Elizarov660c2d72020-02-14 13:18:37 +03006package kotlinx.coroutines.guide.exampleBasic05
Roman Elizarov7cf452e2017-01-29 21:58:33 +03007
Roman Elizarov0950dfa2018-07-13 10:33:25 +03008import kotlinx.coroutines.*
Roman Elizarov7cf452e2017-01-29 21:58:33 +03009
Roman Elizarov660c2d72020-02-14 13:18:37 +030010fun main() = runBlocking { // this: CoroutineScope
11 launch { // launch a new coroutine in the scope of runBlocking
12 delay(1000L)
13 println("World!")
14 }
Roman Elizarovc32579e2018-09-09 19:21:43 +030015 println("Hello,")
16}