Roman Elizarov | 660c2d7 | 2020-02-14 13:18:37 +0300 | [diff] [blame] | 1 | /* |
| 2 | * Copyright 2016-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license. |
| 3 | */ |
| 4 | |
Aurimas Liutikas | 7b14046 | 2021-05-12 21:56:16 +0000 | [diff] [blame^] | 5 | // This file was automatically generated from basics.md by Knit tool. Do not edit. |
Roman Elizarov | 660c2d7 | 2020-02-14 13:18:37 +0300 | [diff] [blame] | 6 | package kotlinx.coroutines.guide.exampleBasic08 |
| 7 | |
| 8 | import kotlinx.coroutines.* |
| 9 | |
| 10 | fun main() = runBlocking { |
| 11 | repeat(100_000) { // launch a lot of coroutines |
| 12 | launch { |
Roman Elizarov | 5705372 | 2020-07-16 19:56:13 +0300 | [diff] [blame] | 13 | delay(5000L) |
Roman Elizarov | 660c2d7 | 2020-02-14 13:18:37 +0300 | [diff] [blame] | 14 | print(".") |
| 15 | } |
| 16 | } |
| 17 | } |