• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
<lambda>null2  * 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 flow.md by Knit tool. Do not edit.
6 package kotlinx.coroutines.guide.exampleFlow03
7 
8 import kotlinx.coroutines.*
9 
10 suspend fun simple(): List<Int> {
11     delay(1000) // pretend we are doing something asynchronous here
12     return listOf(1, 2, 3)
13 }
14 
<lambda>null15 fun main() = runBlocking<Unit> {
16     simple().forEach { value -> println(value) }
17 }
18