blob: dac1785a028b8af86f61cb4985de4b8eef2d787b [file] [log] [blame]
Roman Elizarovb3d55a52017-02-03 12:47:21 +03001// This file was automatically generated from coroutines-guide.md by Knit tool. Do not edit.
Roman Elizarovfa7723e2017-02-06 11:17:51 +03002package guide.basic.example06
Roman Elizarovb3d55a52017-02-03 12:47:21 +03003
4import kotlinx.coroutines.experimental.*
5
6fun main(args: Array<String>) = runBlocking<Unit> {
7 launch(CommonPool) {
8 repeat(1000) { i ->
9 println("I'm sleeping $i ...")
10 delay(500L)
11 }
12 }
13 delay(1300L) // just quit after delay
14}