blob: bb7786f28a68fa6846deaf521e8a9657e054ac64 [file] [log] [blame]
Roman Elizarov660c2d72020-02-14 13:18:37 +03001/*
2 * Copyright 2016-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
3 */
4
Aurimas Liutikas7b140462021-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.exampleBasic08
7
8import kotlinx.coroutines.*
9
10fun main() = runBlocking {
11 repeat(100_000) { // launch a lot of coroutines
12 launch {
Roman Elizarov57053722020-07-16 19:56:13 +030013 delay(5000L)
Roman Elizarov660c2d72020-02-14 13:18:37 +030014 print(".")
15 }
16 }
17}