<lambda>null1// This file was automatically generated from flow.md by Knit tool. Do not edit. 2 package kotlinx.coroutines.guide.exampleFlow05 3 4 import kotlinx.coroutines.* 5 import kotlinx.coroutines.flow.* 6 7 fun simple(): Flow<Int> = flow { 8 println("Flow started") 9 for (i in 1..3) { 10 delay(100) 11 emit(i) 12 } 13 } 14 <lambda>null15fun main() = runBlocking<Unit> { 16 println("Calling simple function...") 17 val flow = simple() 18 println("Calling collect...") 19 flow.collect { value -> println(value) } 20 println("Calling collect again...") 21 flow.collect { value -> println(value) } 22 } 23