<lambda>null1// This file was automatically generated from flow.md by Knit tool. Do not edit. 2 package kotlinx.coroutines.guide.exampleFlow35 3 4 import kotlinx.coroutines.* 5 import kotlinx.coroutines.flow.* 6 7 // Imitate a flow of events 8 fun events(): Flow<Int> = (1..3).asFlow().onEach { delay(100) } 9 <lambda>null10fun main() = runBlocking<Unit> { 11 events() 12 .onEach { event -> println("Event: $event") } 13 .collect() // <--- Collecting the flow waits 14 println("Done") 15 } 16